[Insight-users] Error trying to set an image samples threshold on registration
Oscar Esteban Sanz-Dranguet
oesteban at die.upm.es
Tue Jun 23 07:16:50 EDT 2009
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
More information about the Insight-users
mailing list