How to get brain mask from MR images using skull stripping?

Hi,
OS: Windows 10
slicer: 4.8.1

 I have a MR volume:

   dimensions: 120x256x256
   spacing: 1mm x 1mm x 1mm
   origin: 0mm 0mm 0mm
   IJK to RAS direction matrix: 
     0 0 1
     0 1 0
     1 0 0 

after apply skullStripper:

 got a brain mask(LabelMapVolumeNode):
    dimensions: 256x256x80
    spacing: 1mm x 1mm x 1.5mm
    origin: 256mm 256mm 0mm
    IJK to RAS direction matrix: 
            -1 0 0
            0 -1 0
            0 0 -1 

Confusion: Why the brain mask’s image properties are different with the original MR image?
Question: Is there a quick/easy way to apply the brain mask on the original MR image in python script(mask out the MR image background)?

Any suggestions are greatly appreciated!

Thanks!

YingLi

1 Like

Have you tried the SwissSkullStripper extension? That may give you the mask as you expect, with the warping transform already applied. If not, then use an image resample module to apply the computed transform to the skull mask.

SwissSkullStripper gave the mask needed.

Thanks Andras!

1 Like

Thank you, u are so kind for us.

1 Like