[Insight-users] ScalarImageToHistogramGenerator in Python

Rasmus "Termo" Lundsgaard termopeten at gmail.com
Fri Jun 1 02:42:57 EDT 2012


Dear All!

I'm a fairly new user of ITK, and like it very much as I can implement it
easily together with my other programming in Python.

I would like to perform a histogram calculation on som scalar images that I
have, and I am trying to implement do it as in
Examples/Statistics/ImageHistogram2.cxx but in Python.

the reader I write as

reader = itk.ImageFileReader.IUC2.New()

and was thinking that I could do the same with the
itk.ScalarImageToHistogramGenerator but it doesn't work...

SIHG=itk.ScalarImageToHistogramGenerator.IUC2.New()

SIHG only have these subclasses then:
SIHG.GetPointer  SIHG.IsNotNull   SIHG.IsNull      SIHG.Print
SIHG.this        SIHG.thisown

?!?

Whereas itk.ScalarImageToHistogramGenerator.IUC2 has:
itk.ScalarImageToHistogramGenerator.IUC2.AddObserver
itk.ScalarImageToHistogramGenerator.IUC2.BreakOnError
itk.ScalarImageToHistogramGenerator.IUC2.Compute
itk.ScalarImageToHistogramGenerator.IUC2.CreateAnother
itk.ScalarImageToHistogramGenerator.IUC2.DebugOff
itk.ScalarImageToHistogramGenerator.IUC2.DebugOn
itk.ScalarImageToHistogramGenerator.IUC2.Delete
itk.ScalarImageToHistogramGenerator.IUC2.GetCommand
itk.ScalarImageToHistogramGenerator.IUC2.GetDebug
itk.ScalarImageToHistogramGenerator.IUC2.GetGlobalWarningDisplay
itk.ScalarImageToHistogramGenerator.IUC2.GetMTime
itk.ScalarImageToHistogramGenerator.IUC2.GetMetaDataDictionary
itk.ScalarImageToHistogramGenerator.IUC2.GetNameOfClass
itk.ScalarImageToHistogramGenerator.IUC2.GetOutput
itk.ScalarImageToHistogramGenerator.IUC2.GetReferenceCount
itk.ScalarImageToHistogramGenerator.IUC2.GlobalWarningDisplayOff
itk.ScalarImageToHistogramGenerator.IUC2.GlobalWarningDisplayOn
itk.ScalarImageToHistogramGenerator.IUC2.HasObserver
itk.ScalarImageToHistogramGenerator.IUC2.InvokeEvent
itk.ScalarImageToHistogramGenerator.IUC2.Modified
itk.ScalarImageToHistogramGenerator.IUC2.New
itk.ScalarImageToHistogramGenerator.IUC2.Print
itk.ScalarImageToHistogramGenerator.IUC2.Register
itk.ScalarImageToHistogramGenerator.IUC2.RemoveAllObservers
itk.ScalarImageToHistogramGenerator.IUC2.RemoveObserver
itk.ScalarImageToHistogramGenerator.IUC2.SetDebug
itk.ScalarImageToHistogramGenerator.IUC2.SetGlobalWarningDisplay
itk.ScalarImageToHistogramGenerator.IUC2.SetHistogramMax
itk.ScalarImageToHistogramGenerator.IUC2.SetHistogramMin
itk.ScalarImageToHistogramGenerator.IUC2.SetInput
itk.ScalarImageToHistogramGenerator.IUC2.SetMarginalScale
itk.ScalarImageToHistogramGenerator.IUC2.SetMetaDataDictionary
itk.ScalarImageToHistogramGenerator.IUC2.SetNumberOfBins
itk.ScalarImageToHistogramGenerator.IUC2.SetReferenceCount
itk.ScalarImageToHistogramGenerator.IUC2.UnRegister
itk.ScalarImageToHistogramGenerator.IUC2.mro

How do I Implement this in Python?

Best regards
Termo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120601/2a7ae884/attachment.htm>


More information about the Insight-users mailing list