Hi Pinpress<br><br>The method<br><br>            SetNumberOfSpatialSamples ( );<br><br>is only available in the multi-threaded implementation of the<br><br>   &quot;itkMattesMutualInformationImageToImageMetric&quot;<br><br>
if you don&#39;t find the method at compilation time it means<br>that you forgot to enable the following two variables when <br>you configured ITK with CMake:<br><br>    *    ITK_USE_REVIEW<br>    *    ITK_USE_OPTIMIZED_REGISTRATION_METHODS<br>
<br>Please reconfigure ITK with CMake, turned ON these two<br>variables, and then reconfigure and rebuild your project.<br><br><br>BTW: you will find the old class under:<br><br>Insight/Code/Algorithms/<br>   itkMattesMutualInformationImageToImageMetric.h<br>
<br>and the new class under<br><br>Insight/Code/Review/<br>   itkOptMattesMutualInformationImageToImageMetric.h<br><br><br><br>     Regards,<br><br><br>          Luis<br><br><br>-----------------------------------------------------<br>
<div class="gmail_quote">On Wed, Apr 21, 2010 at 9:09 AM, pinpress <span dir="ltr">&lt;<a href="mailto:sb_ji@yahoo.com">sb_ji@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Hi,<br>
<br>
I am trying different image similarity metrics. Previously I was using<br>
&quot;itkMattesMutualInformationImageToImageMetric&quot;, and I was able to use<br>
<br>
metric-&gt;SetNumberOfSpatialSamples ( 5000 );<br>
<br>
But when I try a different metric, e.g., &quot;itkMeanSquaresImageToImageMetric&quot;,<br>
error message comes out when I compile, saying &quot;SetNumberOfSpatialSamples&quot;<br>
method is not found. However, according to the documentation, the method is<br>
clearly defined in the class.<br>
<br>
I was wondering what could be wrong?? BTW -- I am using ITK 3.8 (but even<br>
so, the method is still there).<br>
<br>
Thanks very much.<br>
--<br>
View this message in context: <a href="http://old.nabble.com/no-method-of-%22SetNumberOfSpatialSamples%22---tp28288025p28288025.html" target="_blank">http://old.nabble.com/no-method-of-%22SetNumberOfSpatialSamples%22---tp28288025p28288025.html</a><br>

Sent from the ITK - Users mailing list archive at Nabble.com.<br>
<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<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>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<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>
</blockquote></div><br>