[ITK] ScaleVersor3DTransform

Wood, Tobias tobias.wood at kcl.ac.uk
Tue Nov 1 05:48:51 EDT 2016


Hello,

I tried to create a ScaleVersor3DTransform that applies an isotropic 0.1 scaling and a 180 degree rotation about Z. I am hence a bit confused about how I get the following output when I print the Transform:

ScaleVersor3DTransform (0x7f8a726789b0)
  RTTI typeinfo:   itk::ScaleVersor3DTransform<double>
  Reference Count: 1
  Modified Time: 209
  Debug: Off
  Object Name: 
  Observers: 
    none
  Matrix: 
    -1.9 0 0 
    0 -1.9 0 
    0 0 0.1 
  Offset: [0, 0, 0]
  Center: [0, 0, 0]
  Translation: [0, 0, 0]
  Inverse: 
    -0.526316 0 0 
    0 -0.526316 0 
    0 0 10 
  Singular: 0
  Versor: [ 0, 0, 1, 0 ]
  Scales:       [0.1, 0.1, 0.1]

Not that the Scales and Versor parameters appear correct. However the Matrix (and Inverse) look very badly wrong. I think the Matrix should be:
-0.1 0 0
0 -0.1 0
0 0 -0.1

What have I misunderstood?

Thanks,
Toby



More information about the Community mailing list