[vtkusers] Black lines through ImageActor?

David Gobbi david.gobbi at gmail.com
Fri Aug 26 17:09:24 EDT 2011


On Fri, Aug 26, 2011 at 2:52 PM, David Doria <daviddoria at gmail.com> wrote:
>> The vtkImageActor will break the image up into multiple textures if
>> the image is too large to fit into a single texture.  There shouldn't
>> be any black lines, though (and I have never seen black lines,
>> myself).  You should file a bug report that has details about your
>> system (OS and graphics) and which version of VTK you are using.
>
> Done: http://vtk.org/Bug/view.php?id=12556
>
>>
>> In VTK devel you can use vtkImageResliceMapper with vtkImageSlice
>> to display large images, these classes allow an image to be efficiently
>> and correctly displayed even if the image is too large for a texture.
>
> vtkImageResliceMapper + vtkImageSlice worked perfectly (no black lines).
> Should this always be used instead of vtkImageActor? Or only for large
> images?
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageSlice

The vtkImageResliceMapper should be used for large images, for
oblique slices of 3D images, or for general-purpose high-quality
image viewing.

There is also a vtkImageSliceMapper class that is faster for small
and medium-sized images, but it cannot do oblique slices and for
large images it might suffer from the same problems as vtkImageActor.

In VTK devel, there is no reason to use vtkImageActor.  It is
superseded by the classes described above.

More info: http://www.vtk.org/Wiki/VTK/Image_Rendering_Classes
Python example: VTK/Examples/ImageProcessing/Python/ImageInteractorReslice.py

 - David



More information about the vtkusers mailing list