Bug: vtkMetaImageWriter not writing vtkMetaImage Direction Matrix to the TransformMatrix line

Also, a related bug: the vtkMetaImageReader does not read the TransformMatrix line.

For example, see the sample .mhd file attached. It has a non identity TransformMatrix.
(well… nvm as a new user i cant upload attachements…)

using the vtkMetaImageReader to read the image, you’ll get an identity matrix when calling .GetDirectionMatrix() instead of the TransformMatrix written in the file.

When using vtkMetaImageWriter, the writer will not write the Direction Matrix to the TransformMatrix line.