int main( int , char* [] )
{
typedef float ScalarType;
EulerTransformType::Pointer eulerTransform = EulerTransformType::New();
EulerTransformType::ParametersType eulerParameters( 6 );
eulerParameters[0] = 0.1;
eulerParameters[1] = 0.2;
eulerParameters[2] = 0.3;
eulerParameters[3] = 4.0;
eulerParameters[4] = 5.0;
eulerParameters[5] = 6.0;
eulerTransform->SetParameters( eulerParameters );
#if defined(ITK_FIXED_PARAMETERS_ARE_DOUBLE)
EulerTransformType::FixedParametersType eulerFixedParameters( Dimension );
#else
EulerTransformType::ParametersType eulerFixedParameters( Dimension );
#endif
eulerFixedParameters[0] = -3.5;
eulerFixedParameters[1] = -4.5;
eulerFixedParameters[2] = -5.5;
eulerTransform->SetFixedParameters( eulerFixedParameters );
ScaleTransformType::Pointer scaleTransform = ScaleTransformType::New();
ScaleTransformType::ParametersType scaleParameters( Dimension );
scaleParameters[0] = 0.6;
scaleParameters[1] = 0.7;
scaleParameters[2] = 0.8;
scaleTransform->SetParameters( scaleParameters );
CompositeTransformType::Pointer compositeTransform = CompositeTransformType::New();
compositeTransform->AddTransform( eulerTransform );
compositeTransform->AddTransform( scaleTransform );
std::cout << "Original transform: " << compositeTransform << std::endl;
CompositeTransformType::Pointer transformCopy = compositeTransform->Clone();
std::cout << "Transform copy: " << transformCopy << std::endl;
return EXIT_SUCCESS;
}