[vtkusers] How can I apply a log to y values in a vtkImageAccumulate histogram ?

aneuryzma patrick.diviacco at gmail.com
Wed Oct 27 08:58:20 EDT 2010


How can I apply a log to y values in a vtkImageAccumulate histogram ?


self.hist.SetInputConnection(data)
        self.hist.SetComponentExtent(0,self.numBins-1,0,0,0,0)   
        # no offset
        self.hist.SetComponentOrigin(0.0,0.0,0.0)
        
        # range of each bin: total range / bins
        self.hist.SetComponentSpacing(range/float(self.numBins), 0.0, 0.0)
        self.hist.Update()
-- 
View this message in context: http://vtk.1045678.n5.nabble.com/How-can-I-apply-a-log-to-y-values-in-a-vtkImageAccumulate-histogram-tp3238675p3238675.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list