[Insight-users] Get number of elements of a 3D image

Mr Francesco Grussu francesco.grussu at eecs.qmul.ac.uk
Fri Jun 15 11:15:23 EDT 2012


Dear all,
could anybody suggest how to get the number of elements along the three
directions of a 3D image?

My real purpouse is to apply a nonlinear voxel-wise transformation on a 3D
image with an iterator, but in my implementation (based on the one from
the example Examples/Iterators/ImageRegionIterator.cxx of ITK) I need the
number of elements along the three directions. Are there any wiser ways to
apply this nonlinear map?

Thanks a lot,
regards

Francesco Grussu



More information about the Insight-users mailing list