Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
IP
elsa
Commits
dfc79f9c
Commit
dfc79f9c
authored
Mar 15, 2022
by
David Frank
Browse files
Add query method for leading direction to traversal
parent
8c831c18
Changes
2
Show whitespace changes
Inline
Side-by-side
elsa/projectors/SliceTraversal.cpp
View file @
dfc79f9c
...
...
@@ -162,6 +162,13 @@ namespace elsa
}
}
index_t
SliceTraversal
::
leadingDirection
()
const
{
index_t
idx
=
0
;
ray_
.
direction
().
array
().
cwiseAbs
().
maxCoeff
(
&
idx
);
return
idx
;
}
SliceTraversal
::
Iter
SliceTraversal
::
begin
()
const
{
return
{
startIndex_
,
ray_
,
tDelta_
,
t_
};
}
SliceTraversal
::
Iter
SliceTraversal
::
end
()
const
{
return
{
endIndex_
,
ray_
,
tDelta_
,
t_
};
}
...
...
elsa/projectors/SliceTraversal.h
View file @
dfc79f9c
...
...
@@ -240,5 +240,8 @@ namespace elsa
// Get the index of the one past the last visited voxel
index_t
endIndex
()
const
;
// Get the leading direction of the ray
index_t
leadingDirection
()
const
;
};
}
// namespace elsa
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment