Importing a 3d Segmentation from Matlab into 3d Slicer


I segmented the head of a femur bone in matlab with the help of the Volume Segmenter App.
Now I am trying to import the segmentation into 3d Slice to segment it further.
The problem is that the alignment of the Segmentation to the MRT is always wrong.

To import the logical 3d array from matlab I transformed it into a stl file but the coordinate system seems to be shifted because of matlab.

Is there a way to align the segmentation to the coordinates of my MRT file or a better way to import the logical 3d array from matlab into 3d Slice?

I am very new to 3d Slice and 3d segmentation in general so I would appreciate the help :slight_smile: