NF: added function to return translation and rotation parameters from rigid affine matrix