I am using vtkNIFTIImageReader to read a nifti file(MRI, human head) and for displaying data I am making use of vtkResliceImageViewer. I see that different files have to different would be
I am using hardcoded values for window and levels as shown below
The problem is that the hardcoding is not suitable for all the datasets. Some datasets appear too bright as shown below:
Is there a computation I should be doing for calculating the proper window and levels?. I also observe that all of my datasets appear with nice intensities in Slicer3D. I guess that there must be some simple calculation to derive an optimum window and level. Any thoughts?