[ITK] [ITK-users] Small gaussian sphere iterator over 3D image

Leslie Solorzano lesolorzanov at gmail.com
Mon Mar 30 09:15:38 EDT 2015


I am aware of the existance of ShapedNeighborhoodIterator. But I don't
understand how to use it.
I have a 3D image and I would like to iterate trought it and calculate a
value according to a guassian sphere centered at each voxel.

I don't understand if the shaped iterator makes a box with given radii (or
offsets), or it makes an ellipse with given offsets.

My sphere is very small, a 4 voxel raidus (7 maximum), and I'd like the
values farthest from the center weight less in my sum, thus the gaussian.

So it is pretty simple, make a shapedneighborhooditerator to be a sphere,
iterate and keep each value as the weighted sum of the values in its
neighbors in a 3D image, can some point me in the right direction?

Thankyou
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20150330/3cc9dc14/attachment.html>


More information about the Community mailing list