[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.


More information about the Insight-users mailing list