<p>Dear All!</p>
<p>I&#39;m a fairly new user of ITK, and like it very much as I can implement it<br>
easily together with my other programming in Python.</p>
<p>I would like to perform a histogram calculation on som scalar images that I<br>
have, and I am trying to implement do it as in<br>
Examples/Statistics/ImageHistogram2.cxx but in Python.</p>
<p>the reader I write as</p>
<p>reader = itk.ImageFileReader.IUC2.New()</p>
<p>and was thinking that I could do the same with the<br>
itk.ScalarImageToHistogramGenerator but it doesn&#39;t work...</p>
<p>SIHG=itk.ScalarImageToHistogramGenerator.IUC2.New()</p>
<p>SIHG only have these subclasses then:<br>
SIHG.GetPointer  SIHG.IsNotNull   SIHG.IsNull      SIHG.Print<br>
SIHG.this        SIHG.thisown</p>
<p>?!?</p>
<p>Whereas itk.ScalarImageToHistogramGenerator.IUC2 has:<br>
itk.ScalarImageToHistogramGenerator.IUC2.AddObserver<br>
itk.ScalarImageToHistogramGenerator.IUC2.BreakOnError<br>
itk.ScalarImageToHistogramGenerator.IUC2.Compute<br>
itk.ScalarImageToHistogramGenerator.IUC2.CreateAnother<br>
itk.ScalarImageToHistogramGenerator.IUC2.DebugOff<br>
itk.ScalarImageToHistogramGenerator.IUC2.DebugOn<br>
itk.ScalarImageToHistogramGenerator.IUC2.Delete<br>
itk.ScalarImageToHistogramGenerator.IUC2.GetCommand<br>
itk.ScalarImageToHistogramGenerator.IUC2.GetDebug<br>
itk.ScalarImageToHistogramGenerator.IUC2.GetGlobalWarningDisplay<br>
itk.ScalarImageToHistogramGenerator.IUC2.GetMTime<br>
itk.ScalarImageToHistogramGenerator.IUC2.GetMetaDataDictionary<br>
itk.ScalarImageToHistogramGenerator.IUC2.GetNameOfClass<br>
itk.ScalarImageToHistogramGenerator.IUC2.GetOutput<br>
itk.ScalarImageToHistogramGenerator.IUC2.GetReferenceCount<br>
itk.ScalarImageToHistogramGenerator.IUC2.GlobalWarningDisplayOff<br>
itk.ScalarImageToHistogramGenerator.IUC2.GlobalWarningDisplayOn<br>
itk.ScalarImageToHistogramGenerator.IUC2.HasObserver<br>
itk.ScalarImageToHistogramGenerator.IUC2.InvokeEvent<br>
itk.ScalarImageToHistogramGenerator.IUC2.Modified<br>
itk.ScalarImageToHistogramGenerator.IUC2.New<br>
itk.ScalarImageToHistogramGenerator.IUC2.Print<br>
itk.ScalarImageToHistogramGenerator.IUC2.Register<br>
itk.ScalarImageToHistogramGenerator.IUC2.RemoveAllObservers<br>
itk.ScalarImageToHistogramGenerator.IUC2.RemoveObserver<br>
itk.ScalarImageToHistogramGenerator.IUC2.SetDebug<br>
itk.ScalarImageToHistogramGenerator.IUC2.SetGlobalWarningDisplay<br>
itk.ScalarImageToHistogramGenerator.IUC2.SetHistogramMax<br>
itk.ScalarImageToHistogramGenerator.IUC2.SetHistogramMin<br>
itk.ScalarImageToHistogramGenerator.IUC2.SetInput<br>
itk.ScalarImageToHistogramGenerator.IUC2.SetMarginalScale<br>
itk.ScalarImageToHistogramGenerator.IUC2.SetMetaDataDictionary<br>
itk.ScalarImageToHistogramGenerator.IUC2.SetNumberOfBins<br>
itk.ScalarImageToHistogramGenerator.IUC2.SetReferenceCount<br>
itk.ScalarImageToHistogramGenerator.IUC2.UnRegister<br>
itk.ScalarImageToHistogramGenerator.IUC2.mro</p>
<p>How do I Implement this in Python?</p>
<p>Best regards<br>
Termo<br></p>