Labelmap at wrong position after saving if loaded with Centered option

Hi I would like to mark a lesion within a structural mri image and save it as a nifti file.
Therefore I click “rotate to volume plane” in the axial, sagittal and coronal view. Then I click on the editor to create a labelmap. In the option “Volumes” I make sure that the original image and the label map have the same origin. I then use the draw effect of the editor to color out the lesion region, slice by slice pixel by pixel.
Now I click save, select only the labelmap and change its format to nifti.

When I overlay the so created labelmap-nifti with the orignal image with the program Mricron the position of the lesion is shifted. What might be the reason for that? Thx in advance

Are you using the (legacy) Editor or the newer Segment Editor?

Maybe you can provide a screenshot to clarify what’s going on.

I used the (legacy)Editor to really draw pixel by pixel the small area of the lesion.

I saved the drawing as nifti.

the screenshot shows the overlay of the two niftis, the original and my drawing, but the position of my drawing relative to the original has shifted, it’s not where the lesion was but higher up. The blue double arrow shows, where I had drawn it originally.

You didn’t check “Centered” on loading the data, or in the Volumes module, for either volume or label, right?

image

Thanks for the screenshot @BenFux - unfortunately I still don’t know what’s going on.

Are you able to reproduce this with a defined series of steps? If so and you can share the sample data I’d be interested to see if we can debug this.

Hi thank you I now know the problem: I didn’t realize that orientation and origin are saved with the image!

The goal was: given a T1 nifti file of a brain with a lesion, I wanted a second nifti of same size, resolution and orientation with only the lesion marked (binary mask).

Mistake: I applied “Center Volume” and “rotate into volume plane” to the original image to draw my lesion mask (aka “label map”), but then saved ONLY the label map, not the original. So then the original kept its old image origin and orientation and didn’t overlap properly with the new labelmap.

So when using “center Volume” or “rotate to volume plane” for drawing a label map, the original needs to be saved as well to have the same origin and orientation as the labelmap. Retrospectively obvious!
Thank you for your help!