[vtkusers] Meaning of Bounds

ianl ilindsay at insigniamedical.co.uk
Thu Nov 29 10:18:04 EST 2012


Hi all, maybe someone can point me to my error in thinking here. I came
across this when investigating some strange 'out by 1' issues.

I am trying to understand the meaning of 'Bounds' with respect to the
vtkImageData class, as obtained via the GetBounds method. If I have an image
which is 4 pixels wide (with extent 0 to 3 on the x axis), origin of 0,0,0
and a spacing of 1mm, I would expect the bounds to be 0 and 4, ie the left
edge of the left most pixel and the right edge of the right most pixel. What
I seem to be getting is 0 and 3. I notice that the ComputeBounds function
does the calculation, and does not seem to take the right hand edge of the
right most pixel.

What am I missing here?

Ian Lindsay



--
View this message in context: http://vtk.1045678.n5.nabble.com/Meaning-of-Bounds-tp5717339.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list