[vtk-developers] Image rendering bug?

David Gobbi david.gobbi at gmail.com
Tue Aug 16 10:51:14 EDT 2011


Hi Ben,

The missing border has to do with interpolation.  Texture borders are
a tricky issue, and by clipping away the border, the vtkImageActor
avoids the issue altogether.

My new image rendering classes (in the git master) provide a
BorderOn/BorderOff flag:
http://www.vtk.org/Wiki/VTK/Image_Rendering_Classes

 - David

On Tue, Aug 16, 2011 at 8:33 AM, Ben Payne <ben.payne at kitware.com> wrote:
> Hi-
>
> I was recently playing around with measuring pixel coordinates for an
> image, and I found that the dimensions of the image in world space
> were one "pixel" less on each axis than the dimensions of the source
> image.
>
> After turning texture filtering off so that I could count the
> individual pixels, I discovered VTK is clipping all the pixels along
> the borders of the image in half!  Can anyone shed some light on
> what's going on here?  I wasn't expecting the vtkImageActor to clip
> any part of the image with just the default settings.  If this is the
> expected behavior, how do I get VTK to display the full image?
>
> Test and screenshot are attached.
>
> Thanks,
> Ben



More information about the vtk-developers mailing list