ITK  4.8.0
Insight Segmentation and Registration Toolkit
SphinxExamples/src/Core/Transform/CopyANonCompositeTransform/Code.cxx
int main( int, char* [] )
{
typedef itk::Euler3DTransform< float > TransformType;
TransformType::Pointer transform = TransformType::New();
TransformType::ParametersType parameters( 6 );
parameters[0] = 0.1;
parameters[1] = 0.2;
parameters[2] = 0.3;
parameters[3] = 4.0;
parameters[4] = 5.0;
parameters[5] = 6.0;
transform->SetParameters( parameters );
TransformType::ParametersType fixedParameters( 3 );
fixedParameters[0] = -3.5;
fixedParameters[1] = -4.5;
fixedParameters[2] = -5.5;
transform->SetFixedParameters( fixedParameters );
std::cout << "Original transform: " << transform << std::endl;
TransformType::Pointer transformCopy = transform->Clone();
std::cout << "Transform copy: " << transformCopy << std::endl;
return EXIT_SUCCESS;
}