[vtkusers] ImagePlaneWidget mapping ImageData with 3 scalars to rgb
DL I
inglis.dl at gmail.com
Tue Sep 29 09:22:07 EDT 2015
Lars,
try changing your value and saturation ranges to something else, like (1,1)
regards,
Dean
On Mon, Sep 28, 2015 at 10:29 AM, Lars Matthäus <lars.matthaeus at web.de>
wrote:
> I have a DataSet with 3 scalar components, e.g. from loading a stack of
> rgb images with the vtkJPEGReader. I want to slice through it using a
> vtkImagePlaneWidget. Unfortunately, I cannot get the widget to display
> the rgb image; I only get a grey image.
>
> I played with the vtkLookupTable::SetVectorModeToRGBColors successfully
> to display the image as rgb using a vtkImageSliceMapper, but when I use
> the same lookup table for the vtkImagePlaneWidget, I get a grey image
> again.
>
> I attach some java sample code comparing the vtkImagePlaneWidget and the
> vtkImageSliceMapper as well as the output of the program.
>
> Any help appreciated!
> Lars
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150929/17525494/attachment.html>
More information about the vtkusers
mailing list