[vtk-developers] Incorrect color function in vtkImageMapToWindowLevelColors with lookupTable
xVict
suharev at roentgenprom.ru
Fri May 25 17:08:53 EDT 2018
Hi David!
1. We want to show the medical image correctly
As a starting point, consider an example:
https://lorensen.github.io/VTKExamples/site/Cxx/IO/ReadDICOM/
We have next pipeline:
vtkDICOMImageReader->vtkImageViewer2
By mouse we can change windowLevel and windowWidth.
ImageViewer2 internally transform 16bit input gray to output r=g=b color
into the render window.
Internally ImageViewer2 use vtkImageMapToWindowLevelColors for window-level.
2. I want use the same transformation but with LUT for 10-bit monitor.
Because I pass my LUT to this class.
imgViewer->GetWindowLevel()->SetLookupTable(colorLut);
And for tests I using LUT with r=g=b.
If that's wrong, correct me. (Specify the correct example to display 16-bit
images on a 10-bit monitor).
But this does not exclude the incomprehensible code in the
vtkImageMapToWindowLevelColors class. Values less than 16 go to zero.
Victor
--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Dev-f1251487.html
More information about the vtk-developers
mailing list