[Vv] x and y axes flipped
Rob Campbell
rob at raacampbell.com
Fri Jun 12 15:56:44 CEST 2015
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
More information about the vv
mailing list