[prev in list] [next in list] [prev in thread] [next in thread]
List: vtk-developers
Subject: Re: [vtk-developers] Image rendering bug?
From: David Gobbi <david.gobbi () gmail ! com>
Date: 2011-08-16 14:51:14
Message-ID: CANwS1=H2mha9Lh4eb0nwhhAEip0R8CT258mScNCJe7JEycUf0Q () mail ! gmail ! com
[Download RAW message or body]
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@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
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtk-developers
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic