TransformJ: Matrix
General Description
This plugin creates affine transformation matrices and files.
Dialog Description
An affine transformation is determined by a 4 x 4 matrix, which is applied to input positions expressed in homogeneous coordinates [1,2] to calculate the output positions, as follows:
The 4 x 4 text field grid in the dialog represents the affine transformation matrix in the above equation. By default, the transformation matrix is set to be the identity matrix (as depicted above). The last row of the matrix is predefined (the corresponding text fields in the dialog cannot be modified).
Rotate
Opens a dialog to specify a rotation angle (in degrees) and axis. The specified rotation is incorporated in the current matrix.
Scale
Opens a dialog to specify a scaling factor and axis. The specified scaling is incorporated in the current matrix.
Shear
Opens a dialog to specify a shearing factor, the shearing axis, and the driving axis. The latter is the axis as a function of which shearing is applied along the shearing axis. The specified shearing is incorporated in the current matrix.
Translate
Opens a dialog to specify a translation distance (in physical units) and axis. The specified translation is incorporated in the current matrix.
Invert
Replaces the current matrix by its inverse.
Reset
Replaces the current matrix by the identity matrix.
Copy
Places a copy of the current matrix on the system clipboard.
Print
Outputs the current matrix to the ImageJ log window.
Undo
Replaces the current matrix by the matrix before the last change.
Load
Opens a file dialog and loads the selected matrix file after confirmation.
Save
Opens a file dialog and saves the current matrix to the specified file after confirmation.
Close
Closes the matrix dialog and returns control.
References
G. Wolberg
Digital Image Warping
IEEE Computer Society Press, Washington, DC, 1990J. Foley, A. van Dam, S. K. Feiner, J. F. Hughes
Computer Graphics: Principles and Practice
Second Edition, Systems Programming Series, Addison-Wesley, Reading, MA, 1990