[vtkusers] vtkImageMapToColors vtkWindowLevelLookupTable

David Gobbi david.gobbi at gmail.com
Fri Mar 3 13:17:51 EST 2017


Hi Shark,

I'm glad that you got it working.  Yes, a fix for this should be included
in the next VTK release.

Cheers,
 - David


On Fri, Mar 3, 2017 at 5:12 AM, Shark <m.nunes at fratoria.com> wrote:

> Hi Again,
>
> I finally made everything work. I was using a combination of global lookups
> with local lookups together with slice rendering and multiple actors. It
> seems a combination of build() calls and Modified() are needed. At least,
> this is the only way I managed to make it work for all my cases.
>
> I am leaving here my result.
>
> vtkWindowLevelLookupTable* lookup = vtkWindowLevelLookupTable::New();
> lookup->SetMinimumTableValue(0, 0, 0, 1);
> lookup->SetMaximumTableValue(1, 1, 1, 1);
> lookup->SetTableValue(0, 0, 0, 0, 1);
> lookup->SetTableValue(255, 1, 1, 1, 1);
>
> lookup->Build();
> lookup->SetWindow(_pDataSet->GetOverlay()->GetWindowWidth());
> lookup->SetLevel(_pDataSet->GetOverlay()->GetWindowLevel());
> lookup->Build();
> lookup->Modified();
>
> I would like to know if a fix is being included in the next VTK release
> (7.2?).
> Thanks!
> Shark
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170303/75908ab0/attachment.html>


More information about the vtkusers mailing list