[vtk-developers] Incorrect color function in vtkImageMapToWindowLevelColors with lookupTable

xVict suharev at roentgenprom.ru
Tue May 29 05:21:14 EDT 2018


Hi David,

To test the vtkImageMapToWindowLevelColors class the sources was uploaded on
GitHub:
https://github.com/xThorn/vtk-tests
See mapToWLC folder.

By first item: can I set texture type GL_UNSIGNED_INT_2_10_10_10_REV?

In https://www.vtk.org/Wiki/VTK/Image_Rendering_Classes

Many greyscale monitors with DVI inputs use the equation L = 0.30*R + 0.59*G
+ 0.11B to convert the 24-bit RGB DVI signal into a greyscale signal. For
such monitors, it is possible to create a vtkLookupTable with 4096 entries
that provides distinct greyscale values via appropriately-chosen RGB values. 

This method works through GDI.

Victor.



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Dev-f1251487.html


More information about the vtk-developers mailing list