[Insight-users] no method of "SetNumberOfSpatialSamples"??
Luis Ibanez
luis.ibanez at kitware.com
Thu Apr 22 11:28:15 EDT 2010
Hi Pinpress
The method
SetNumberOfSpatialSamples ( );
is only available in the multi-threaded implementation of the
"itkMattesMutualInformationImageToImageMetric"
if you don't find the method at compilation time it means
that you forgot to enable the following two variables when
you configured ITK with CMake:
* ITK_USE_REVIEW
* ITK_USE_OPTIMIZED_REGISTRATION_METHODS
Please reconfigure ITK with CMake, turned ON these two
variables, and then reconfigure and rebuild your project.
BTW: you will find the old class under:
Insight/Code/Algorithms/
itkMattesMutualInformationImageToImageMetric.h
and the new class under
Insight/Code/Review/
itkOptMattesMutualInformationImageToImageMetric.h
Regards,
Luis
-----------------------------------------------------
On Wed, Apr 21, 2010 at 9:09 AM, pinpress <sb_ji at yahoo.com> wrote:
>
> Hi,
>
> I am trying different image similarity metrics. Previously I was using
> "itkMattesMutualInformationImageToImageMetric", and I was able to use
>
> metric->SetNumberOfSpatialSamples ( 5000 );
>
> But when I try a different metric, e.g.,
> "itkMeanSquaresImageToImageMetric",
> error message comes out when I compile, saying "SetNumberOfSpatialSamples"
> method is not found. However, according to the documentation, the method is
> clearly defined in the class.
>
> I was wondering what could be wrong?? BTW -- I am using ITK 3.8 (but even
> so, the method is still there).
>
> Thanks very much.
> --
> View this message in context:
> http://old.nabble.com/no-method-of-%22SetNumberOfSpatialSamples%22---tp28288025p28288025.html
> Sent from the ITK - Users mailing list archive at Nabble.com.
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100422/de4f19a9/attachment.htm>
More information about the Insight-users
mailing list