[Insight-users] get dimensions of image volume
M.Staring at lumc.nl
M.Staring at lumc.nl
Tue Feb 2 08:53:10 EST 2010
Hi Michael,
> 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?
>
There actually is, but it is somewhat hidden in the region:
SizeType size = image->GetLargestPossibleRegion().GetSize();
Cheers,
Marius
More information about the Insight-users
mailing list