How to determine the order of the translation, rotation, and scaling in affine transform.

If it includes translation, rotation, and scaling at the same time, how to determine the order of the three transformations?

Thinks!

For the affine transformation the operation is
T(\mathbf{x}) = A(\mathbf{x}-\mathbf{c}) + \mathbf{t} + \mathbf{c}

where in your case A=RS , R rotation matrix, S diagonal scaling matrix, \mathbf{t} translation, \mathbf{c} transformation center. For details see this Jupyter notebook (the code there is for SimpleITK but the explanations are the same for ITK and SimpleITK).

1 Like

thinks very much!

1 Like