<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div><br></div><div>What version of ITK and WrapITK are you using? What platform? What python? etc...</div><div><br></div><div>I am not sure how you are getting your list of methods. However I have the latest build from master and I get the following:</div><div><br></div><div><div> dir( itk.ScalarImageToHistogramGenerator.IUC2.New() )</div><div>Out[12]: </div><div>['AddObserver',</div><div> 'BreakOnError',</div><div> 'Clone',</div><div> 'Compute',</div><div> 'CreateAnother',</div><div> 'DebugOff',</div><div> 'DebugOn',</div><div> 'GetCommand',</div><div> 'GetDebug',</div><div> 'GetGlobalWarningDisplay',</div><div> 'GetMTime',</div><div> 'GetMetaDataDictionary',</div><div> 'GetNameOfClass',</div><div> 'GetOutput',</div><div> 'GetPointer',</div><div> 'GetReferenceCount',</div><div> 'GetTimeStamp',</div><div> 'GlobalWarningDisplayOff',</div><div> 'GlobalWarningDisplayOn',</div><div> 'HasObserver',</div><div> 'InvokeEvent',</div><div> 'Modified',</div><div> 'New',</div><div> 'Print',</div><div> 'RemoveAllObservers',</div><div> 'RemoveObserver',</div><div> 'SetDebug',</div><div> 'SetGlobalWarningDisplay',</div><div> 'SetHistogramMax',</div><div> 'SetHistogramMin',</div><div> 'SetInput',</div><div> 'SetMarginalScale',</div><div> 'SetMetaDataDictionary',</div><div> 'SetNumberOfBins',</div><div> '__New_orig__',</div><div> '__class__',</div><div> '__delattr__',</div><div> '__dict__',</div><div> '__doc__',</div><div> '__eq__',</div><div> '__format__',</div><div> '__getattribute__',</div><div> '__hash__',</div><div> '__init__',</div><div> '__module__',</div><div> '__new__',</div><div> '__reduce__',</div><div> '__reduce_ex__',</div><div> '__repr__',</div><div> '__setattr__',</div><div> '__sizeof__',</div><div> '__str__',</div><div> '__subclasshook__',</div><div> '__swig_destroy__',</div><div> '__weakref__',</div><div> 'cast',</div><div> 'this',</div><div> 'thisown']</div></div><div><br></div><div><br><div><div>On Jun 1, 2012, at 2:42 AM, Rasmus Termo Lundsgaard wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><p>Dear All!</p><p>I'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'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>
_____________________________________<br>Powered by <a href="http://www.kitware.com">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information visit:<br>http://www.kitware.com/products/protraining.php<br><br>Please keep messages on-topic and check the ITK FAQ at:<br>http://www.itk.org/Wiki/ITK_FAQ<br><br>Follow this link to subscribe/unsubscribe:<br>http://www.itk.org/mailman/listinfo/insight-users<br></blockquote></div><br><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 12px; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">========================================================</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Bradley Lowekamp<span class="Apple-converted-space"> </span><span class="Apple-converted-space"> </span></font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Medical Science and Computing for</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Office of High Performance Computing and Communications</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">National Library of Medicine<span class="Apple-converted-space"> </span></font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; "><a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a></font></p><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline">
</div>
<br></div></body></html>