[Insight-users] Error trying to set an image samples threshold on registration
Oscar Esteban Sanz-Dranguet
oesteban at die.upm.es
Thu Sep 24 13:13:23 EDT 2009
Hi Luis,
Is this the correct way to turn it ON? :
IF(ITK_FOUND)
INCLUDE(${ITK_USE_FILE})
SET(ITK_USE_OPTIMIZED_REGISTRATION_METHODS ON)
SET(ITK_USE_REVIEW ON)
ENDIF(ITK_FOUND)
Cheers,
Oscar Esteban
BIT - UPM (http://www.die.upm.es/im/)
+34 913 366 827 ext.4248
Luis Ibanez escribió:
>
> Hi Oscar,
>
>
> It seems that you have not turned ON the CMake option
>
> ITK_USE_OPTIMIZED_REGISTRATION_METHODS
>
> when you configured ITK with CMake.
>
>
>
> Please do so,
> and let us know if you still find any problems.
>
>
>
> Thanks
>
>
> Luis
>
>
> -------------------------------------
> Oscar Esteban Sanz-Dranguet wrote:
>> Hi all,
>>
>> I want to set a threshold to mask the fixed image on
>> MattesMutualInformationImageToImageMetric. This is the code:
>>
>> typename InternalImage::PixelType thres = 3;
>>
>> m_metric->SetFixedImageSamplesIntensityThreshold(thres); //
>> this is RigidRegistration.cxx:660
>>
>> But I can't compile, getting this error:
>>
>> RigidRegistration.cxx:660: error: 'class
>> itk::MattesMutualInformationImageToImageMetric<itk::Image<short int,
>> 3u>, itk::Image<short int, 3u> >' has no member named
>> 'SetFixedImageSamplesIntensityThreshold'
>>
>> RigidRegistration.cxx: In member function 'void
>> RigidRegistration<DIMENSION, Transform, Metric,
>> TOptimizer>::InitRegistration() [with unsigned char DIMENSION = 3u,
>> Transform = itk::CenteredEuler3DTransform, Metric =
>> itk::MattesMutualInformationImageToImageMetric, TOptimizer =
>> itk::GradientDescentOptimizer]':
>>
>> RigidRegistration.cxx:113: instantiated from 'void
>> RigidRegistration<DIMENSION, Transform, Metric,
>> TOptimizer>::PerformRegistration() [with unsigned char DIMENSION =
>> 3u, Transform = itk::CenteredEuler3DTransform, Metric =
>> itk::MattesMutualInformationImageToImageMetric, TOptimizer =
>> itk::GradientDescentOptimizer]'
>>
>> rreg.cxx:176: instantiated from 'T configure(std::string,
>> std::string, std::string, itk::SmartPointer<itk::Image<bool, 3u> >,
>> int, int, float, float, ParametersType, ParametersType,
>> ParametersType, std::string, bool, float, float, std::string) [with T
>> = RigidRegistration<3u, itk::CenteredEuler3DTransform,
>> itk::MattesMutualInformationImageToImageMetric,
>> itk::GradientDescentOptimizer> ]
>>
>>
>> I will appreciate any help with this. Thanks in advance.
>>
>> Best Regards,
>>
>> Oscar Esteban
>> Biomedical Image Technologies Group - Universidad Politécnica de Madrid
>> _____________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.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
>>
More information about the Insight-users
mailing list