<br>Hi Greg,<br><br>Thanks for pointing this out.<br><br>Could you please report this in the Bug Tracker ?<br><br><a href="http://public.kitware.com/Bug/my_view_page.php">http://public.kitware.com/Bug/my_view_page.php</a><br>
<br><br>   Thanks<br><br><br>          Luis<br><br><br>------------------------------------------------------<br><div class="gmail_quote">On Mon, Aug 10, 2009 at 5:53 PM, Greg Harris <span dir="ltr">&lt;<a href="mailto:Gregory-Harris@uiowa.edu">Gregory-Harris@uiowa.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



<div>
<font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">Hi Luis,<br>
<br>
In building with Review/Statistics and Tcl Wrapping, I find I need to avoid with #if 0 the code in Insight/Code/Review/Statistics/itkScalarImageToHistogramGenerator.txx lines 72 thru 93, definitions of SetHistogramMin and SetHistogramMax since SampleToHistogramFilter does not in turn provide methods for SetHistogramMin and SetHistogramMax now that Histogram is going to develop its own Min and Max based on what it observes.  This code would not get tested for compilability with wrapping  turned off.<br>

<br>
Thanks,<br>
Greg<div><div></div><div class="h5"><br>
<br>
<br>
On 8/8/09 9:19 AM, &quot;Luis Ibanez&quot; &lt;<a href="http://luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a>&gt; wrote:<br>
<br>
</div></div></span></font><blockquote><div><div></div><div class="h5"><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">Hi Greg,<br>
<br>
The offending symbols have been removed:<br>
<br>
<a href="http://public.kitware.com/cgi-bin/viewcvs.cgi/Code/Review/Statistics/itkScalarImageToHistogramGenerator.h?root=Insight&amp;r1=1.1&amp;r2=1.2&amp;sortby=date" target="_blank">http://public.kitware.com/cgi-bin/viewcvs.cgi/Code/Review/Statistics/itkScalarImageToHistogramGenerator.h?root=Insight&amp;r1=1.1&amp;r2=1.2&amp;sortby=date</a><br>

<br>
<a href="http://public.kitware.com/cgi-bin/viewcvs.cgi/Code/Review/Statistics/itkScalarImageToHistogramGenerator.txx?root=Insight&amp;r1=1.2&amp;r2=1.3&amp;sortby=date" target="_blank">http://public.kitware.com/cgi-bin/viewcvs.cgi/Code/Review/Statistics/itkScalarImageToHistogramGenerator.txx?root=Insight&amp;r1=1.2&amp;r2=1.3&amp;sortby=date</a><br>

<br>
<br>
Please let us know if you find any other problem.<br>
<br>
<br>
     Thanks<br>
<br>
<br>
          Luis<br>
<br>
<br>
-------------------------------------------<br>
On Sat, Aug 8, 2009 at 10:13 AM, Luis Ibanez &lt;<a href="http://luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a>&gt; wrote:<br>
</span></font></div></div><blockquote><div><div></div><div class="h5"><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">Hi Greg,<br>
<br>
Thanks for pointing this out.<br>
<br>
This is a mistake on our part.<br>
<br>
I practice, none of the classes in Code/Review/Statistics<br>
should have to use or refer to the symbol:<br>
<br>
          ITK_USE_REVIEW_STATISTICS<br>
<br>
The reason is that, if the symbol is not defined, then<br>
these files should not be included at all in the first place.<br>
<br>
In other words, the only way to get to include these files<br>
is to set ITK_USE_REVIEW_STATISTICS to ON.<br>
<br>
<br>
We will remove the ITK_USE_REVIEW_STATISTICS<br>
conditionals from that file.<br>
<br>
<br>
     Regards,<br>
<br>
<br>
          Luis<br>
<br>
<br>
----------------------<br>
<br>
On Fri, Aug 7, 2009 at 5:20 PM, Greg Harris &lt;<a href="http://Gregory-Harris@uiowa.edu" target="_blank">Gregory-Harris@uiowa.edu</a>&gt; wrote:<br>
</span></font></div></div><blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><div><div></div><div class="h5">Oops, I think I misdiagnosed it:  in Code/Review/Statistics, the files<br>

itkScalarImageToHistogramGenerator.{h,txx} do not agree when<br>
ITK_USE_REVIEW_STATISTICS is ON:  I would add the<br>
#ifndef ITK_USE_REVIEW_STATISTICS<br>
Around the .h prototypes to match the .txx implementations.<br>
<br>
My bad.<br>
<br>
<br>
On 8/7/09 3:17 PM, &quot;Greg Harris&quot; &lt;<a href="http://Gregory-Harris@uiowa.edu" target="_blank">Gregory-Harris@uiowa.edu</a>&gt; wrote:<br>
<br>
&gt; Dear Insight user&#39;s help list:<br>
&gt;<br>
&gt; I have been compiling ITK with the ITK_USE_REVIEW_STATISTICS flag ON, and<br>
&gt; with wrapping of Tcl turned ON as well.  Along the way, there is this<br>
&gt; glitch:<br>
&gt;<br>
&gt; While linking a library to include the glue for the wrapping file<br>
&gt; WrapITK/Modules/Calculators/wrap_itkScalarImageToHistogramGenerator.cmake<br>
&gt; the method functions for SetHistogramMax and SetHistogramMin have no<br>
&gt; implementation.  Rightly so, but there should be no wrapped methods for<br>
&gt; them.<br>
&gt;<br>
&gt; On the face of it, the two versions of ScalarImageToHistogramGenerator,<br>
&gt; Code/Numerics/Statistics/itkScalarImageToHistogramGenerator.{h,txx} and<br>
&gt; Code/Review/Statistics/itkScalarImageToHistogramGenerator.{h,txx} are both<br>
&gt; available to the wrapping compiler, but only the standard version has Set<br>
&gt; methods for HistogramMin and HistogramMax.<br>
&gt;<br>
&gt; Since I don&#39;t know why -- apparently only in this one case of superceding an<br>
&gt; itk class definition with a Review method, which happens all the time -- the<br>
&gt; Tcl glue-interface is being generated for the standard class by that name<br>
&gt; and then linked against the review definition of the same class name, I have<br>
&gt; temporarily adopted the expedient of renaming<br>
&gt; wrap_itkScalarImageToHistogramGenerator.cmake to a safe place nearby so the<br>
&gt; entire class&#39;s glue code won&#39;t be generated at all.<br>
&gt;<br>
&gt; This won&#39;t do for the long run as we would like to wrap the Review version<br>
&gt; of ScalarImageToHistogramGenerator, and we would not like to tamper with the<br>
&gt; source download each time.  I know I could devise a patch that modifies the<br>
&gt; Code/Numerics/Statistics copy, but why are we dealing with it at all, after<br>
&gt; ITK_USE_REVIEW_STATISTICS is ON?<br>
&gt;<br>
&gt; Should I have a sinking fear that Whenever people supercede a class<br>
&gt; implementation with a Review version, the non-Review version is driving the<br>
&gt; Tcl wrapper glue generation?  That would be wrong; it would need serious<br>
&gt; fixing, even if this is the first known case where it has made a difference.<br>
&gt;<br>
&gt; I hope someone who knows what&#39;s what will kindly help us with this.<br>
&gt; Greg Harris<br>
&gt; Brain Imaging Application Developer<br>
&gt; Iowa Psychiatric Neuroimaging Consortium<br>
&gt; Carver College of Medicine<br>
&gt; The University of Iowa<br>
&gt;<br>
&gt; _____________________________________<br></div></div>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a> &lt;<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>&gt; <br><div class="im">
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br>
_____________________________________<br></div>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a> &lt;<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>&gt; <br><div class="im">
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at: <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</div></span></font></blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><br>
</span></font></blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><br>
<br>
</span></font></blockquote>
</div>


</blockquote></div><br>