[vtkusers] Using and/or seperating original image colors
don.casteel
don.casteel at delphi.com
Thu Oct 13 12:48:49 EDT 2005
Sorry if this double posts, I just realized the subject line should have
read [vtkusers] instead of [new user]
Don
________________________________
From: Casteel, Don
Sent: Thursday, October 13, 2005 9:08 AM
To: vtkusers at vtk.org
Subject: [new user] Using and/or seperating original image colors
Hello Everyone,
I am new to vtk and this user list, please bear with me.
(BTW I have tried reading through the list archives with no luck)
I am trying to read in multiple images and visualize them as a volume.
I have been able to read the images and render surface contours and
volumes (not the way I need them)
First.... I have been unable to figure out how to use the colors and
opacity from the original images in a volumeMapper.
Nothing I try works... VTK seems to only allow converting the pixel
values to a single scalar and apply a color and opacity gradient against
that single scalar.
By setting the vtkPolyDataMapper.ScalarVisibilityOn I can get a
polysurface colored with the original image colors, But I can't find a
way to do that with the VolumeMappers.
Second... I'm not able to figure out how to separate the colors into
separate surfaces, again VTK forces the color values into a single
gradient.
This is all very confusing and frustrating because each of the colors
and the Alpha value in my images mean something different, and VTK seems
to force them into a single combined value.
I need to be able to pull out the individual RGBA components into
separate ImageData objects but this seems to be against the rules of VTK
I will really appreciate any suggestions that may help me out
Thanks
Don Casteel - Manufacturing Engineer
Delphi Thermal & Interior
4605 Airport Road
Gadsden, Alabama 35904
Office: 256-413-4118
Cell: 256-312-9195
D/C: 154*82240*28
****************************************************************************************
Note: If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you.
****************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20051013/cbf866bb/attachment.htm>
More information about the vtkusers
mailing list