<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">https://www.vtk.org/doc/nightly/html/classvtkImageMapToWindowLevelColors.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_10_</span><wbr 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"><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><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></div><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_<wbr>REV?<br>
<br>
In <a href="https://www.vtk.org/Wiki/VTK/Image_Rendering_Classes" rel="noreferrer" target="_blank">https://www.vtk.org/Wiki/VTK/<wbr>Image_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="HOEnZb"><div class="h5"><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.<wbr>com/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/<wbr>opensource/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/<wbr>listinfo/vtk-developers</a><br>
<br>
</div></div></blockquote></div><br></div>