[Insight-users] Gradient Magnitude
David Doria
daviddoria at gmail.com
Sun May 1 19:04:45 EDT 2011
On Sun, May 1, 2011 at 6:57 PM, Neil Panjwani <paniwani at gmail.com> wrote:
> If you know the indexes of the line, you could use the image region iterator
> with index to scan those indices and find the highest value using an if
> statement.
Here is an example of what Neil suggested (you'd have to check
"iterator.GetIndex() == AnyOfYourIndices" for every pixel visited by
the iterator):
http://www.vtk.org/Wiki/ITK/Examples/Iterators/ImageRegionIteratorWithIndex
If you have the end points of the line rather than the list of indices
composing the line, you could use this:
http://www.vtk.org/Wiki/ITK/Examples/Iterators/LineConstIterator
David
More information about the Insight-users
mailing list