[Insight-users] itkOptMattesMutualImageToImageMetric redefinition error

Oscar Esteban Sanz-Dranguet oesteban at die.upm.es
Tue Sep 29 12:44:16 EDT 2009


Thanks, but in that case, I'm still getting errors:
> error: 'class itk::ImageToImageMetric<itk::Image<float, 3u>, 
> itk::Image<float, 3u> >' has no member named 
> 'SetFixedImageSamplesIntensityThreshold'
It seems that SET( ITK_USE_OPTIMIZED_REGISTRATION_METHODS ON) is not 
correctly working for me.

I'm using Paul Novo's packages for ubuntu 
(http://paulnovo.org/repository). Version 3.14

Cheers,

Oscar Esteban
BIT - UPM (http://www.die.upm.es/im/)
+34 913 366 827 ext.4248



Bill Lorensen escribió:
> Leave the original include. When you build with
> ITK_USE_OPTIMIZED_REGISTRATION_METHODS ON, the optimized methods will
> be used automagically.
>
> Bill
>
> On Tue, Sep 29, 2009 at 12:04 PM, Oscar Esteban Sanz-Dranguet
> <oesteban at die.upm.es> wrote:
>   
>> Hi all,
>>
>> I'm trying to use the optimized registration methods of itk. I've configured
>> CMakeLists.txt of the project with:
>>
>> SET( ITK_USE_OPTIMIZED_REGISTRATION_METHODS ON)
>> SET(ITK_USE_REVIEW ON)
>>
>> Then I've used the example DeformableRegistration8.cxx, changing the
>> include:
>>
>> #include "itkMattesMutualInformationImageToImageMetric.h" -> #include
>> "itkOptMattesMutualInformationImageToImageMetric.h"
>>
>> And it doesn't compile:
>>     
>>> /usr/include/InsightToolkit/BasicFilters/itkBSplineInterpolateImageFunction.h:81:
>>> error: redefinition of default argument for 'class TCoordRep'
>>>
>>> /usr/include/InsightToolkit/Review/itkOptBSplineInterpolateImageFunction.h:70:
>>> note: original definition appeared here
>>> In file included from
>>> /usr/include/InsightToolkit/BasicFilters/itkBSplineInterpolateImageFunction.h:243,
>>> from
>>> /usr/include/InsightToolkit/Review/itkOptBSplineInterpolateImageFunction.txx:23,
>>> from
>>> /usr/include/InsightToolkit/Review/itkOptBSplineInterpolateImageFunction.h:404,
>>> from /usr/include/InsightToolkit/Review/itkOptImageToImageMetric.h:34,
>>> from
>>> /usr/include/InsightToolkit/Review/itkOptMattesMutualInformationImageToImageMetric.h:20,
>>>       
>> I tried too by deleting all the other includes, but using only the include
>> of itkOptMattesMutualInformationImageToImageMetric.h the error's still there
>> (plus the new errors of undefined classes).
>>
>> How should I use the optimized registration methods? (how to configure
>> CMake, how to include headers, how to call special members of this
>> classes,...)
>>
>> Thanks in advance,
>>
>> --
>> Oscar Esteban
>> BIT - UPM (http://www.die.upm.es/im/)
>> +34 913 366 827 ext.4248
>>
>> _____________________________________
>> 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