[Insight-users] Bug in MultiResolutionPDEDeformableRegistration

Bill Lorensen bill.lorensen at gmail.com
Thu Mar 4 14:39:29 EST 2010


Gerald,

Not all filters were converted to handle both itkImage and
itkOrientedImage. Since itkImage now behaves the same as
itkOrientedImage, you should always use itkImage. I doubt if we will
make a pass through all of itk for those classes that handle itkImage
and not itkOrientedImage.

Bill

On Thu, Mar 4, 2010 at 1:51 AM, Lodron, Gerald
<Gerald.Lodron at joanneum.at> wrote:
> This variable is on but if itk::Image and itk::OrientedImage is the same i do not understand why my compiler only allows the itk::Image?
>
> -----Ursprüngliche Nachricht-----
> Von: Bill Lorensen [mailto:bill.lorensen at gmail.com]
> Gesendet: Mittwoch, 03. März 2010 20:47
> An: Lodron, Gerald
> Cc: insight-users at itk.org
> Betreff: Re: [Insight-users] Bug in MultiResolutionPDEDeformableRegistration
>
> itkImage now behaves exactly as itkOrientedImage. In other words, you no longer need to use itkOrientedImage.
> This happened in release 3.10. There is a cmake option:
> ITK_IMAGE_BEHAVES_AS_ORIENTED_IMAGE to control this behaviour, but the default is ON. Check your CMakeCache.txt to make sure this cmake variable is ON.
>
> Bill
>
> On Wed, Mar 3, 2010 at 3:33 AM, Lodron, Gerald <Gerald.Lodron at joanneum.at> wrote:
>>
>> Hello
>>
>> The itk::MultiResolutionPDEDeformableRegistration can only handle itk::Images, no itk::OrientedImages:
>>
>> My test:
>> typedef itk::OrientedImage<float,2>
>> TestImageType;//itk::Image instead of itk::Oriented image will work
>> typedef itk::Vector<float,2>
>> TestVectorPixelType; typedef itk::OrientedImage<TestVectorPixelType,2>
>> TestDeformationFieldType;//itk::Image instead of itk::Oriented image
>> will work
>>
>>
>> typedef itk::DemonsRegistrationFilter<TestImageType, TestImageType,
>> TestDeformationFieldType>           TestRegistrationFilterType;
>> TestRegistrationFilterType::Pointer oTestFilter =
>> TestRegistrationFilterType::New();
>>
>> typedef itk::MultiResolutionPDEDeformableRegistration< TestImageType,
>> TestImageType, TestDeformationFieldType
>> >TestMultiResRegistrationFilterType;
>>
>> TestMultiResRegistrationFilterType::Pointer oTestMultires =
>> TestMultiResRegistrationFilterType::New();
>>
>> oTestMultires->SetRegistrationFilter( oTestFilter ); //Compile error
>> oTestMultires->if OrientedImages are used
>>
>>
>>
>>
>>
>> _____________________________________
>> 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
>>
>


More information about the Insight-users mailing list