[Insight-users] Error trying to set an image samples threshold on registration
N. Markus
neuner.markus at gmx.net
Fri Sep 25 14:48:48 EDT 2009
Hi,
i dont know if this works but i think the SET commands need to be placed
before the INCLUDE(${ITK_USE_FILE}).
Greets
Oscar Esteban Sanz-Dranguet wrote:
> Hi,
>
> I've compiled ITK 3.16 using
> -DITK_USE_OPTIMIZED_REGISTRATION_METHODS=ON and -DITK_REVIEW=ON
>
> Then, I've changed the includes for these ones:
> #include <itkOptImageToImageMetric.h>
> #include <itkOptMattesMutualInformationImageToImageMetric.h>
>
> I've tried to compile with
> SET(ITK_USE_OPTIMIZED_REGISTRATION_METHODS ON)
> SET(ITK_USE_REVIEW ON)
>
> But I'm still getting the same error :S. I don't know what to do or
> where to search.
>
> Thanks in advance,
>
> Oscar Esteban
> BIT - UPM (http://www.die.upm.es/im/)
> +34 913 366 827 ext.4248
>
>
>
> Oscar Esteban Sanz-Dranguet escribió:
>> 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
>>>>
>> _____________________________________
>> 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
>>
> _____________________________________
> 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