[Insight-users] Rigid3DTransform make error
brian avants
stnava at gmail.com
Fri Jan 6 23:09:54 EST 2012
hi sara
we will typically use the itkEuler3DTransform.h ,
itkVersorRigid3DTransform.h or the itkQuaternionRigidTransform.h for
3d rigid mappings. the Rigid3D transform is not ideal b/c it
directly uses a matrix representation. perhaps that is not the
answer you were looking for but hope it helps anyway,
brian
On Fri, Jan 6, 2012 at 6:18 PM, David Doria <daviddoria at gmail.com> wrote:
> On Fri, Jan 6, 2012 at 5:47 PM, Sara Rolfe <smrolfe at u.washington.edu> wrote:
>> Hello,
>>
>> I'd like to use the Rigid3DTransform but I'm getting an error when I try to
>> create a new instance. I commented out all the lines of my code expect for:
>>
>> typedef itk::Rigid3DTransform<double> TransformType;
>> TransformType::Pointer transform = TransformType::New();
>>
>> The second line results in the following error:
>>
>> /Users/smrolfe/build/LandmarkRegistration.cxx:132: error: conversion from
>> ‘itk::SmartPointer<itk::MatrixOffsetTransformBase<double, 3u, 3u> >’ to
>> non-scalar type ‘itk::SmartPointer<itk::Rigid3DTransform<double> >’
>> requested
>>
>> It seems strange that just declaring a new instance of the filter would
>> cause this error. I've tried substituting in the Rigid2DTransform and that
>> works just fine. Please let me know if you have any ideas.
>>
>> Thanks,
>> Sara
>
> I looked in
> Modules/Core/Transform/test/itkRigid3DTransformTest.cxx
>
> and saw Rigid3DTransformSurrogate defined and then used.
>
> I don't know why that is necessary, but maybe it'll get you going?
>
> If someone knows why this is necessary, it might be nice to add a
> comment in the test near the Surrogate definition.
>
> David
> _____________________________________
> 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