[Insight-users] Grid Node Iterator

somi seesomi at gmail.com
Mon Nov 2 00:14:04 EST 2009


Hi,
Is there any neighborhood iterator which automatically divides image into
regular grid of fixed density and iterates on the grid nodes ?

I plan to use it for something like this:

a) Divided image into grids and define some neighborhood
b) Visit each grid node in the source image/ compare the source image patch
with the corresponding moving image after applying some random translation
and get a metric value.
c) After running through all nodes we would have a metric matrix same size
as the grid.

I was wondering which iterator/set of classes would be most efficient in
terms of speed for this purpose.
The iterators that I saw in ITK either go pixel-wise, or if we add a
constant offset it doesn't visit the grid nodes that I expect it to.
So each time I have to setLocation in the iterator, which kind of defeats
the purpose of using an iterator. Should I go for the traditional way:
for i=1:gridspacing:LengthX
for j=1:gridspacing:LengthY
??
I would appreciate any help from experienced people who might work on a
similar problem.

Regards,
Somi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20091102/47ae8008/attachment.htm>


More information about the Insight-users mailing list