[Vv] x and y axes flipped
Simon Rit
simon.rit at creatis.insa-lyon.fr
Fri Jun 12 16:06:50 CEST 2015
Hi,
One solution is to change the TransformMatrix. If you want to flip x and y,
then change it to
TransformMatrix = 0 1 0 1 0 0 0 0 1
Regarding VV, only with the git version and the CLITK_EXPERIMENTAL build
option will it display it accurately. But RTK in any case should account
for this transform.
Simon
On Fri, Jun 12, 2015 at 3:56 PM, Rob Campbell <rob at raacampbell.com> wrote:
> Hello,
>
> I have converted a 3-D matrix in MATLAB to an MHA/raw file pair. I can
> load the resulting images in vv but I've notices that the x and y axes are
> flipped. The MHA file contains:
>
> ObjectType = Image
> NDims = 3
> BinaryData = True
> DataType = float
> CompressedData = False
> TransformMatrix = 1 0 0 0 1 0 0 0 1
> Offset = 0 0 0
> CenterOfRotation = 0 0 0
> AnatomicalOrientation = RAI
> ElementSize = 1 1 1
> ElementSpacing = 1 1 2
> DimSize = 370 592 212
> ElementType = MET_FLOAT
> ElementByteOrderMSB = False
> ElementDataFile = orig.raw
>
>
> I've messed about a bit with AnatomicalOrientation (e.g. setting it to
> ASL) but this doesn't help. One solution might be to flip the x and y axes
> before writing the data. Are there other solutions?
>
> Thanks!
> Rob
>
> _______________________________________________
> vv mailing list
> vv at creatis.insa-lyon.fr
> http://www.creatis.insa-lyon.fr/mailman/listinfo/vv
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.creatis.insa-lyon.fr/pipermail/vv/attachments/20150612/6ee35253/attachment.html>
More information about the vv
mailing list