<div dir="ltr">According to the VTK testing dashboard, removing the "color modulation" code does not cause any VTK to fail, see the "CDash" link on the following page:<div><a href="https://gitlab.kitware.com/vtk/vtk/merge_requests/4350">https://gitlab.kitware.com/vtk/vtk/merge_requests/4350</a><br></div><div><br></div><div>So there isn't any code in VTK that relies on the old behavior of vtkImageMapToWindowLevelColors. I also looked at the image rendering code in 3D Slicer. Interestingly, it uses this class without a lookup table, and then applies a lookup table to the resulting 8-bit data (so a two-stage process, vtkImageMapToWindowLevelColors to generate 8-bit data, followed by vtkImageMapToColors with a 256-entry lookup table to generate color data). So apparently the Slicer folks found the LUT behavior of this class to be not useful, and had to added extra stage to their pipeline to apply the LUT.</div><div><br></div><div>Does anyone out there use the color modulation feature of <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">vtkImageMapToWindowLevelColors?</span></div><div><br></div><div> - David</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 30, 2018 at 8:56 AM, David Gobbi <span dir="ltr"><<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Victor,<div><br></div><div>I have updated the vtkImageMapToWindowLevelColors documentation according to my understanding of how it works:</div><div><a href="https://www.vtk.org/doc/nightly/html/classvtkImageMapToWindowLevelColors.html" target="_blank">https://www.vtk.org/doc/<wbr>nightly/html/<wbr>classvtkImageMapToWindowLevelC<wbr>olors.html</a><br></div><div>Honestly I think the class would be better without the "color modulation" feature. If you are displaying grayscale, you can use the class without a lookup table.</div><div><br></div><div>It might be possible to set <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">GL_UNSIGNED_INT_2_10_10_<wbr>10_</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">REV in VTK if you make your own frame buffer object, but you can't use it with any of the usual image viewers or image mappers that are already in VTK, since they all assume 8 bits per color component for the display. The luminance via RGB trick should work fine if you have a suitable grayscale monitor with RGB input.</span></div><span class="HOEnZb"><font color="#888888"><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"> - David</span></div><div><br></div><div><br></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 29, 2018 at 3:21 AM, xVict <span dir="ltr"><<a href="mailto:suharev@roentgenprom.ru" target="_blank">suharev@roentgenprom.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi David,<br>
<br>
To test the vtkImageMapToWindowLevelColors class the sources was uploaded on<br>
GitHub:<br>
<a href="https://github.com/xThorn/vtk-tests" rel="noreferrer" target="_blank">https://github.com/xThorn/vtk-<wbr>tests</a><br>
See mapToWLC folder.<br>
<br>
By first item: can I set texture type GL_UNSIGNED_INT_2_10_10_10_REV<wbr>?<br>
<br>
In <a href="https://www.vtk.org/Wiki/VTK/Image_Rendering_Classes" rel="noreferrer" target="_blank">https://www.vtk.org/Wiki/VTK/I<wbr>mage_Rendering_Classes</a><br>
<br>
Many greyscale monitors with DVI inputs use the equation L = 0.30*R + 0.59*G<br>
+ 0.11B to convert the 24-bit RGB DVI signal into a greyscale signal. For<br>
such monitors, it is possible to create a vtkLookupTable with 4096 entries<br>
that provides distinct greyscale values via appropriately-chosen RGB values. <br>
<br>
This method works through GDI.<br>
<br>
Victor.<br>
<div class="m_238308894607771979HOEnZb"><div class="m_238308894607771979h5"><br>
<br>
<br>
--<br>
Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Dev-f1251487.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.c<wbr>om/VTK-Dev-f1251487.html</a><br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">https://vtk.org/mailman/listin<wbr>fo/vtk-developers</a><br>
<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>