[vtkusers] how to calculate the extent of an image?
fred
fredmfp at gmail.com
Tue Jun 12 14:08:08 EDT 2007
Emmanouil Moschidis a écrit :
> Hello maybe it is a simple question but how can we calculate the
> extent of a vtkImageData? For example one 512x512 two dimensional
> image has extent
> (0,512,0,512,0,1) ? Is it correct? In many cases i see that extent[4]
> is 1...
I personnaly use (0, nx, 0, ny, 0, 1)
and that works perfectly.
Cheers,
--
http://scipy.org/FredericPetit
More information about the vtkusers
mailing list