# Help With .mha file not properly showing

**URL:** <https://discourse.slicer.org/t/help-with-mha-file-not-properly-showing/35244>\
**Category:** Support\
**Created:** [April 3, 2024, 3:44am UTC](https://discourse.slicer.org/t/help-with-mha-file-not-properly-showing/35244 "2024-04-03T03:44:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DHK](https://avatars.discourse-cdn.com/v4/letter/d/f475e1/32.png) [@DHK](https://discourse.slicer.org/u/DHK)\
**Post date:** [April 3, 2024, 3:44am UTC](https://discourse.slicer.org/t/help-with-mha-file-not-properly-showing/35244/1 "2024-04-03T03:44:07Z")

</div>

I’ve use the PlusMATLABUtil’s MATLABMetaFileIO to combine 2D ultrasound images with an optical tracking system into a .mha file. In it, there are ImageToProbe and ProbeToReference transforms that I have multiplied to get the ImageToReference transform and 325 frames of 814\*552 images at the very end.

I can get a volume when I load the .mha file as a volume, but when I load it as a sequence metafile and try to copy the steps in the example document SlicerIGT-U32\_TrackedUsVisualization.pptx, I don’t get a moveable 2D image as I do with the example. Nor can I get it to work with Volume Reconstruction, which I need as my goal is to get a model of a blood vessel combined with the tracking system.

Would anybody able to tell me what I did wrong?

Here’s the first few and last few lines of the code:

> ObjectType = Image  
> NDims = 3  
> BinaryData = True  
> BinaryDataByteOrderMSB = False  
> CompressedData = False  
> CenterOfRotation = 0 0 0  
> Offset = 0 0 0  
> DimSize = 814 552 325  
> ElementType = MET\_UCHAR  
> ElementSpacing = 6.172840e-02 6.172840e-02 6.172840e-02  
> ElementByteOrderMSB = False  
> TransformMatrix = 0 1 0 0 0 -1 -1 0 0  
> UltrasoundImageOrientation = MF  
> UltrasoundImageType = BRIGHTNESS  
> Seq\_Frame0000\_FrameNumber = 1  
> Seq\_Frame0000\_ProbeToReferenceTransform = -9.273654e-01 -1.198580e-01 -3.544398e-01 -3.082373e+02 1.606707e-02 9.336714e-01 -3.577702e-01 -1.905464e+02 -3.738119e-01 3.374785e-01 8.639288e-01 9.434536e+02 0 0 0 1  
> Seq\_Frame0000\_ProbeToReferenceTransformStatus = OK  
> Seq\_Frame0000\_ImageToProbeTransform = 3.467000e-01 1.316000e-01 0 1.091116e+02 -2.807000e-01 -6.200000e-02 0 1.549904e+02 1.460000e-01 3.940000e-02 0 5.965800e+00 0 0 0 1  
> Seq\_Frame0000\_ImageToProbeTransformStatus = OK  
> Seq\_Frame0000\_ImageToReferenceTransform = -3.194031e-01 8.131641e-02 -1.699668e-01 -2.283019e+01 2.593153e-01 -2.424350e-02 1.216730e-01 2.533265e+02 -1.347623e-01 1.928739e-02 -6.584435e-02 -4.654438e+01 0 0 0 1  
> Seq\_Frame0000\_ImageToReferenceTransformStatus = OK  
> Seq\_Frame0000\_UnfilteredTimestamp = 0  
> Seq\_Frame0000\_Timestamp = 0  
> Seq\_Frame0000\_ImageStatus = OK

(skip)

> Seq\_Frame0324\_FrameNumber = 325  
> Seq\_Frame0324\_ProbeToReferenceTransform = -9.270131e-01 -2.674204e-01 -2.629316e-01 -3.280601e+02 -1.103972e-01 8.646172e-01 -4.901527e-01 -1.783717e+02 -3.584120e-01 4.253510e-01 8.310339e-01 9.150596e+02 0 0 0 1  
> Seq\_Frame0324\_ProbeToReferenceTransformStatus = OK  
> Seq\_Frame0324\_ImageToProbeTransform = 3.467000e-01 1.316000e-01 0 1.091116e+02 -2.807000e-01 -6.200000e-02 0 1.549904e+02 1.460000e-01 3.940000e-02 0 5.965800e+00 0 0 0 1  
> Seq\_Frame0324\_ImageToProbeTransformStatus = OK  
> Seq\_Frame0324\_ImageToReferenceTransform = -3.359237e-01 2.106895e-02 -1.556625e-01 -2.810055e+01 2.670572e-01 2.145865e-02 1.041944e-01 2.581359e+02 -1.396936e-01 -4.977467e-03 -5.770003e-02 -4.895882e+01 0 0 0 1  
> Seq\_Frame0324\_ImageToReferenceTransformStatus = OK  
> Seq\_Frame0324\_UnfilteredTimestamp = 1.079967e+01  
> Seq\_Frame0324\_Timestamp = 1.079967e+01  
> Seq\_Frame0324\_ImageStatus = OK  
> ElementDataFile = LOCAL
