<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I had problems compiling latest stable on Ubuntu (probably because
    I'm behind a proxy), so it was on the standard version 3.20 from the
    Ubuntu repositories...<br>
    <br>
    <br>
    Anyhow, I now used some time to get it compiled on Ubuntu, and
    managed with system gccxml and swig setup in ccmake (and installed
    in Ubuntu), and now it works as expected.<br>
    <br>
    <br>
    Thanks!<br>
    <br>
    /Rasmus<br>
    <br>
    <br>
    <br>
    On 06/01/2012 02:58 PM, Bradley Lowekamp wrote:
    <blockquote
      cite="mid:6345B813-03F1-4F7B-A550-DED9981FC801@mail.nih.gov"
      type="cite">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&nbsp;have the latest build from master and I get the
        following:</div>
      <div><br>
      </div>
      <div>
        <div>&nbsp;dir( itk.ScalarImageToHistogramGenerator.IUC2.New() )</div>
        <div>Out[12]:&nbsp;</div>
        <div>['AddObserver',</div>
        <div>&nbsp;'BreakOnError',</div>
        <div>&nbsp;'Clone',</div>
        <div>&nbsp;'Compute',</div>
        <div>&nbsp;'CreateAnother',</div>
        <div>&nbsp;'DebugOff',</div>
        <div>&nbsp;'DebugOn',</div>
        <div>&nbsp;'GetCommand',</div>
        <div>&nbsp;'GetDebug',</div>
        <div>&nbsp;'GetGlobalWarningDisplay',</div>
        <div>&nbsp;'GetMTime',</div>
        <div>&nbsp;'GetMetaDataDictionary',</div>
        <div>&nbsp;'GetNameOfClass',</div>
        <div>&nbsp;'GetOutput',</div>
        <div>&nbsp;'GetPointer',</div>
        <div>&nbsp;'GetReferenceCount',</div>
        <div>&nbsp;'GetTimeStamp',</div>
        <div>&nbsp;'GlobalWarningDisplayOff',</div>
        <div>&nbsp;'GlobalWarningDisplayOn',</div>
        <div>&nbsp;'HasObserver',</div>
        <div>&nbsp;'InvokeEvent',</div>
        <div>&nbsp;'Modified',</div>
        <div>&nbsp;'New',</div>
        <div>&nbsp;'Print',</div>
        <div>&nbsp;'RemoveAllObservers',</div>
        <div>&nbsp;'RemoveObserver',</div>
        <div>&nbsp;'SetDebug',</div>
        <div>&nbsp;'SetGlobalWarningDisplay',</div>
        <div>&nbsp;'SetHistogramMax',</div>
        <div>&nbsp;'SetHistogramMin',</div>
        <div>&nbsp;'SetInput',</div>
        <div>&nbsp;'SetMarginalScale',</div>
        <div>&nbsp;'SetMetaDataDictionary',</div>
        <div>&nbsp;'SetNumberOfBins',</div>
        <div>&nbsp;'__New_orig__',</div>
        <div>&nbsp;'__class__',</div>
        <div>&nbsp;'__delattr__',</div>
        <div>&nbsp;'__dict__',</div>
        <div>&nbsp;'__doc__',</div>
        <div>&nbsp;'__eq__',</div>
        <div>&nbsp;'__format__',</div>
        <div>&nbsp;'__getattribute__',</div>
        <div>&nbsp;'__hash__',</div>
        <div>&nbsp;'__init__',</div>
        <div>&nbsp;'__module__',</div>
        <div>&nbsp;'__new__',</div>
        <div>&nbsp;'__reduce__',</div>
        <div>&nbsp;'__reduce_ex__',</div>
        <div>&nbsp;'__repr__',</div>
        <div>&nbsp;'__setattr__',</div>
        <div>&nbsp;'__sizeof__',</div>
        <div>&nbsp;'__str__',</div>
        <div>&nbsp;'__subclasshook__',</div>
        <div>&nbsp;'__swig_destroy__',</div>
        <div>&nbsp;'__weakref__',</div>
        <div>&nbsp;'cast',</div>
        <div>&nbsp;'this',</div>
        <div>&nbsp;'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 &nbsp;SIHG.IsNotNull &nbsp; SIHG.IsNull &nbsp; &nbsp;
              &nbsp;SIHG.Print<br>
              SIHG.this &nbsp; &nbsp; &nbsp; &nbsp;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 moz-do-not-send="true"
              href="http://www.kitware.com">www.kitware.com</a><br>
            <br>
            Visit other Kitware open-source projects at<br>
            <a moz-do-not-send="true"
              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>
            <a class="moz-txt-link-freetext" href="http://www.kitware.com/products/protraining.php">http://www.kitware.com/products/protraining.php</a><br>
            <br>
            Please keep messages on-topic and check the ITK FAQ at:<br>
            <a class="moz-txt-link-freetext" href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a><br>
            <br>
            Follow this link to subscribe/unsubscribe:<br>
            <a class="moz-txt-link-freetext" href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><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 style="font: normal normal
                normal 12px/normal Helvetica; " face="Helvetica"
                size="3">========================================================</font></p>
            <p style="margin-top: 0px; margin-right: 0px; margin-bottom:
              0px; margin-left: 0px; "><font style="font: normal normal
                normal 12px/normal Helvetica; " face="Helvetica"
                size="3">Bradley Lowekamp<span
                  class="Apple-converted-space">&nbsp;</span><span
                  class="Apple-converted-space">&nbsp;</span></font></p>
            <p style="margin-top: 0px; margin-right: 0px; margin-bottom:
              0px; margin-left: 0px; "><font style="font: normal normal
                normal 12px/normal Helvetica; " face="Helvetica"
                size="3">Medical Science and Computing for</font></p>
            <p style="margin-top: 0px; margin-right: 0px; margin-bottom:
              0px; margin-left: 0px; "><font style="font: normal normal
                normal 12px/normal Helvetica; " face="Helvetica"
                size="3">Office of High Performance Computing and
                Communications</font></p>
            <p style="margin-top: 0px; margin-right: 0px; margin-bottom:
              0px; margin-left: 0px; "><font style="font: normal normal
                normal 12px/normal Helvetica; " face="Helvetica"
                size="3">National Library of Medicine<span
                  class="Apple-converted-space">&nbsp;</span></font></p>
            <p style="margin-top: 0px; margin-right: 0px; margin-bottom:
              0px; margin-left: 0px; "><font style="font: normal normal
                normal 12px/normal Helvetica; " face="Helvetica"
                size="3"><a moz-do-not-send="true"
                  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>
    </blockquote>
    <br>
  </body>
</html>