[vtkusers] ImagePlaneWidget mapping ImageData with 3 scalars to rgb
Lars Matthäus
lars.matthaeus at web.de
Wed Sep 30 03:44:50 EDT 2015
Dear Dean,
Thanks for your help! Unfortunately, it doesn't solve the problem. The
image in the vtkImagePlaneWidget is still not like the original rgb. I
attach again some screenshots for comparison (vtkImagePlaneWidget on the
left, vtkImageSliceMapper on the right). Is there anything else I could try?
Best,
Lars
Am 29.09.2015 um 15:22 schrieb DL I:
> 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
> <mailto: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 <http://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 --------------
A non-text attachment was scrubbed...
Name: vtk_ImagePlaneWidget_vs_ImageSliceMapper_value-1-1_saturation-0-0.jpg
Type: image/jpeg
Size: 16032 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150930/26b7381d/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtk_ImagePlaneWidget_vs_ImageSliceMapper_value-1-1_saturation-0-1.jpg
Type: image/jpeg
Size: 21074 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150930/26b7381d/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtk_ImagePlaneWidget_vs_ImageSliceMapper_value-1-1_saturation-1-1.jpg
Type: image/jpeg
Size: 21257 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150930/26b7381d/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtk_ImagePlaneWidget_vs_ImageSliceMapper_value-0-1_saturation-1-1.jpg
Type: image/jpeg
Size: 20034 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150930/26b7381d/attachment-0003.jpg>
More information about the vtkusers
mailing list