usage: AimsRigidifyTransformation.py [-h] [--debug] [--centre CENTRE]
                                     [--centre-space {source,target}]
                                     input_trm output_trm

Compute the closest rotation matrix to a given affine transformation.

positional arguments:
  input_trm             input affine transformation (.trm file)
  output_trm            output affine transformation (.trm file)

options:
  -h, --help            show this help message and exit
  --debug               print debugging information
  --centre CENTRE       centre of the descaling. This is the point, given in
                        either source or target space coordinates (see
                        --centre-in), that will be transformed in the same way
                        by the input transformation and the output
                        transformation. A comma-separated list of 3 floats is
                        expected. [default: 0, 0, 0]
  --centre-space {source,target}
                        the space (either "source" or "target") in which the
                        centre is given (see --centre). [default: "target"]
