[Insight-users] get dimensions of image volume
Gomez, Alberto
alberto.gomez at kcl.ac.uk
Tue Feb 2 08:56:36 EST 2010
Hi,
you need the size of the LargestPossibleRegion of the image,
image->GetLargestPossibleRegion().GetSize()
This will give you the number of voxels in x, y and z
hth
Alberto
michiel mentink wrote:
> Is there some way of getting the number of pixels in X,Y,Z from an ITK image?
>
> There's methods in ITKImage for spacing, origin and direction, but not for the amount of pixels.
> Why is that?
>
> cheers, Michael
>
>
>
--
Alberto Gómez
/Division of Imaging Sciences
The Rayne Institute
4th Floor, Lambeth Wing
St Thomas' Hospital
London SE1 7EH /
phone: +44 (0) 20 718 88364
email: alberto.gomez at kcl.ac.uk <mailto:alberto.gomez at kcl.ac.uk>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100202/f377c6d4/attachment-0001.htm>
More information about the Insight-users
mailing list