[vtkusers] vtkImageMapper3D, vtkInteractorStyleImage - inverting luminance images
Dean Inglis
dean.inglis at camris.ca
Wed Jun 15 10:31:18 EDT 2011
Hi David,
thanks for reminding me of that class, no edits necessary. For anyone else
following this thread,
here is how you might set things up to do on the fly window level inversion.
Dean
----- Original Message -----
From: "David Gobbi" <david.gobbi at gmail.com>
To: "Dean Inglis" <dean.inglis at camris.ca>
Cc: <vtkusers at vtk.org>
Sent: Tuesday, June 14, 2011 10:32 PM
Subject: Re: [vtkusers] vtkImageMapper3D, vtkInteractorStyleImage -
inverting luminance images
On Tue, Jun 14, 2011 at 7:39 PM, Dean Inglis <dean.inglis at camris.ca> wrote:
> I am finally going to have to learn git/gerrit ! I will push to gerrit
> a topic branch with patches to the mappers. Would you mind
> reviewing?
No problem, I'd be glad to review the changes. However, I have to
ask... for inversion, wouldn't it be easier to add a
vtkWindowLevelLookupTable to the vtkImageProperty and use
InverseVideoOn() or Off()?
The reason I ask is that the ConvertImageScalarsToRGBA() is not the
only method that the image mapper classes use for converting the data,
most of the conversion is done by vtkScalarsToColors, which rejects
inverted ranges. I'm not sure how deep you want to go in your
changes.
- David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ImageWindowLevelInversion.tcl
Type: application/octet-stream
Size: 3886 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110615/5caf2823/attachment.obj>
More information about the vtkusers
mailing list