[vtkusers] vtkImageMapToColors vtkWindowLevelLookupTable

David Gobbi david.gobbi at gmail.com
Wed Mar 1 08:55:33 EST 2017


Please excuse my typo.  I meant "colors are left as (0,0,0,0)", not "colors
to left as".

On Wed, Mar 1, 2017 at 6:54 AM, David Gobbi <david.gobbi at gmail.com> wrote:

> 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.c
>> om/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/9a90313c/attachment.html>


More information about the vtkusers mailing list