[Insight-users] question on inverse transform
kingaza at gmail.com
kingaza at gmail.com
Sun May 8 01:43:50 EDT 2005
Hi all,
I got the inverse transform
TransformType::Pointer inverseTransform = TransformType::New();
transform->GetInverse(inverseTransform);
and Now I want to get the parameters of inverse transform:
typedef TransformType::ParametersType ParametersType;
ParametersType inverseParameters = inverseTransform->GetParameters();
const double inverseVersorX = inverseParameters[0];
const double inverseVersorY = inverseParameters[1];
const double inverseVersorZ = inverseParameters[2];
const double inverseTranslationX = inverseParameters[3];
const double inverseTranslationY = inverseParameters[4];
const double inverseTranslationZ = inverseParameters[5];
TransformType::MatrixType inverseMatrix =
inverseTransform->GetRotationMatrix();
TransformType::OffsetType inverseOffset = inverseTransform->GetOffset();
But the inverseParameters are ZEROS while inverseMatrix and
inverseOffset are seems right:
Transform =
versor X = 0.000145543
versor Y = -2.15933e-005
versor Z = -0.000379622
Translation X = 1.95512
Translation Y = -2.30325
Translation Z = 0.602563
Matrix =
1 0.000759237 -4.3297e-005
-0.000759249 1 -0.000291069
4.3076e-005 0.000291102 1
Offset =
[1.79904, -2.05726, 0.528728]
Inverse Transform =
versor X = 0
versor Y = 0
versor Z = 0
Translation X = 0
Translation Y = 0
Translation Z = 0
Matrix =
1 -0.000759249 4.3076e-005
0.000759237 1 0.000291102
-4.3297e-005 -0.000291069 1
Offset =
[-1.80062, 2.05574, -0.529249]
Could anyone help me?
any tip is appreciated!
Regards,
Kingaza
More information about the Insight-users
mailing list