[vtkusers] vtkImageMapToColors vtkWindowLevelLookupTable

David Gobbi david.gobbi at gmail.com
Wed Mar 1 08:54:17 EST 2017


Hi Shark,

Glad that you sorted it out.  Your fix looks sensible, given the way that
the bug works. Essentially, the "under" and "over" colors to left as
(0,0,0,0) in certain circumstances, instead of being set to the "min" and
"max" colors.  Directly calling SetTableValue() is a work-around.

Cheers,
 - David

On Wed, Mar 1, 2017 at 6:39 AM, Shark <m.nunes at fratoria.com> wrote:

> David, your tip was useful to come up with a fix.
>
> Apparently got it working by adding SetTableValue in:
>
> Lookup->SetMinimumTableValue(0, 0, 0, 1);
> Lookup->SetMaximumTableValue(1, 1, 1, 1);
> Lookup->SetTableValue(0, 0, 0, 0, 1);
> Lookup->SetTableValue(1, 1, 1, 1, 1);
> Lookup->Build();
>
> Let me know if there is a more logical/correct fix.
>
> Thank you again,
> Shark
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.
> com/VTK-7-1-issue-with-Window-Level-rendered-values-tp5742316p5742319.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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/20170301/ff8a6669/attachment.html>


More information about the vtkusers mailing list