Here is some information on how to produce a matrix for the new 3D volume position using the start positions in the start position file. In the following the rows of the matrix are represented by different lines and the individual colums are separated by semicolons.
TOriginalPositionWCS
TTranscenterInv
TStartTransformation
TTranscenter
TStartErrorPositionWCS =
The 3D position of the volume at the end of the registration is most probably represented by a matrix (the position of the 3D volume in WCS). To transform this back to the Tx, Ty, Tz, Rx, Ry, Rz format you can use the following steps:
TPositionErrorResultWCS
TPositionErrorResult =
TOriginalErrorPosition =
TOriginalErrorPositionInv =
TRemainingPositionResult =
Tx = TRemainingPositionResult[0][3]
Ty = TRemainingPositionResult[1][3]
Tz = TRemainingPositionResult[2][3]
Ry = -asin(TRemainingPositionResult[2][0])
Rx = asin(TRemainingPositionResult[2][1]*1/cos(Ry))
Rz = asin(TRemainingPositionResult[1][0]*1/cos(Ry))