Hello,
I am adjust the volume’s brightness and contrast in vtkVolumeProperty.I do so by using SetFinalColorWindow and SetFinalColorLevel and used method vtkImagePlaneWidget to extracted a slice from 3D volume.Now,i want the brightness and contrast of the slice to match the brightness and contrast of the 3D volume.It means that the slice parameters of the brightness and contrast should be same of the SetFinalColorWindow and SetFinalColorLevel’s parameter.
I don’t found any discussions about this on this and other forums.
Can someone help?
Thank you
vtkNew<vtkGPUVolumeRayCastMapper> volumeMapper ;
......
......
volumeMapper->SetFinalColorWindow(contrastValue);
volumeMapper->SetFinalColorLevel(brightnessValue);