[ITK Community] [Insight-users] LandmarkBasedTransformInitializer

Luis Ibanez luis.ibanez at kitware.com
Fri Dec 13 09:10:07 EST 2013


Hi Massi,

Could you please share your definition of "ImageType" ?

There seems to be a mismatch between the dimensions of the image type and
the dimension of the transform type.

   Thanks

        Luis



On Wed, Dec 11, 2013 at 2:45 PM, Massinissa Bandou <
Massinissa.Bandou at usherbrooke.ca> wrote:

> Thanks for the quick reply Hans
> If I get the pointer from  transform:
>
>         typedef itk::Rigid2DTransform<double> Rigid2DTransformType;
>         typedef
>
> itk::LandmarkBasedTransformInitializer<Rigid2DTransformType,ImageType,ImageType>
> LandmarkBasedTransformInitializerType;
>         Rigid2DTransformType::Pointer transform =
> Rigid2DTransformType::New();
>
>         transform->SetIdentity();
>         landmarkBasedTransformInitializer->SetTransform(transform);
>         landmarkBasedTransformInitializer->InitializeTransform();
>
>         typedef itk::ResampleImageFilter<ImageType, ImageType, double >
> ResampleFilterType;
>         ResampleFilterType::Pointer resampleFilter =
> ResampleFilterType::New();
>         resampleFilter->SetInput(movingImage);
>         resampleFilter->SetTransform(transform.GetPointer());
>
>
> I ll get this error:
> Error   5       error C2664:
> 'itk::ResampleImageFilter<TInputImage,TOutputImage>::SetTransform' : cannot
> convert parameter 1 from 'itk::Rigid2DTransform<TScalarType> *' to 'const
> itk::Transform<TScalarType,NInputDimensions,NOutputDimensions> *'
>
> C:\Users\Massi\Desktop\TomoRegistration\TomoRegistration\ITKRegistration.cpp
> 319     1       TomoRegistration
>
>
>
>
> --
> View this message in context:
> http://itk-users.7.n7.nabble.com/LandmarkBasedTransformInitializer-tp32954p32956.html
> Sent from the ITK - Users mailing list archive at Nabble.com.
> _____________________________________
> 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.php
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20131213/0d03496b/attachment.html>
-------------- next part --------------
_____________________________________
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.php

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 Community mailing list