[ITK Community] [Insight-users] LandmarkBasedTransformInitializer

Massinissa Bandou Massinissa.Bandou at USherbrooke.ca
Wed Dec 11 14:45:40 EST 2013


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



More information about the Community mailing list