[vtkusers] grey values from CT scan
    Mathieu Malaterre 
    Mathieu.Malaterre at creatis.insa-lyon.fr
       
    Fri Sep 12 14:14:03 EDT 2003
    
    
  
Viral,
	Here is a python code:
reader = vtkVolume16Reader()
...
reader.Update()
print reader.GetOutput().GetScalarRange()
#print pixel value:
print reader.GetOutput().GetScalarComponentAsFloat(0,0,0,0)
HTH
mathieu
Ps: I am not sure I understood what you meant by 'threshold value' ??? 
Therefore I translated it to scalar range...
Viral Thakkar wrote:
> Hi,
> 
> I want to read the greyscale values of the pixels of CT scan. I am using 
> vtkVolume16Reader to read the CT scans. Can anyone help me regarding how 
> to get the threshold or greyscale values.
> 
> Thanks
> 
> Viral
    
    
More information about the vtkusers
mailing list