[vtkusers] vtkImagePlaneWidget problem, (data thickness)

Dean Inglis dean.inglis at camris.ca
Wed Jan 26 18:48:31 EST 2011


Hi, 

>One more thing i should let know, the size of the image is 512,448.

>So i have SetDataDimensions(511,447). But some how the resultant images is
>bigger than this size, as you can see the white color space above the
>resultant images. What is the reason causing this?

that seems to be the problem.  SetDataDimensions(511,447) should be
SetDataDimensions(512,448).   You set Extents to 0 based indexing.

regards,
Dean




More information about the vtkusers mailing list