[vtkusers] How to display the points in a greyscale range in other colors for DICOM series via vtkImageViewers
fblupi
fboli94 at gmail.com
Sun Apr 10 11:07:55 EDT 2016
If you use vtkImageViewer2 it's easy adding color and you can do it by
setting a vtkColorTransferFunction previously defined. Something like this:
...
iv2 = vtkSmartPointer<vtkImageViewer2>::New();
ctf = vtkSmartPointer<vtkColorTransferFunction>::New();
// add colors some colors with ctf->AddRGBPoint(density, red, green, blue);
iv2->GetWindowLevel()->SetLookupTable(ctf);
...
I hope you will find this useful.
--
View this message in context: http://vtk.1045678.n5.nabble.com/How-to-display-the-points-in-a-greyscale-range-in-other-colors-for-DICOM-series-via-vtkImageViewers-tp5737603p5737604.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list