MIC-DKFZ / BraTS2017

Apache License 2.0
74 stars 16 forks source link

What is the brain_mask #9

Closed yianzhongguo closed 5 years ago

yianzhongguo commented 5 years ago

@FabianIsensee Hi, Isensee. I am reading your code and have learned a lot. But I do not make it clear when I find the line"brain_mask= (t1_img != t1_img[0, 0, 0]) & (t1c_img != t1c_img[0, 0, 0]) & (t2_img != t2_img[0, 0, 0]) & ( flair_img != flair_img[0, 0, 0])". What is the brain_mask, thank you!

FabianIsensee commented 5 years ago

Hi, the brain mask is just the mask of all nonzero voxels. The brats data is brain extracted meaning that the outside is all zeros. I am using that brain mask to do normalization within the brain region only and not having skewed mean and standard deviation due to background

yianzhongguo commented 5 years ago

@FabianIsensee Thank you! I have checked the original image of brats2017. I know it now the image[0,0,0] is 0 just like what you said.