Mehrdad-Noori / Brain-Tumor-Segmentation

Attention-Guided Version of 2D UNet for Automatic Brain Tumor Segmentation
209 stars 36 forks source link

question in seg.nii #4

Closed rezababaee759 closed 4 years ago

rezababaee759 commented 4 years ago

thanks for your job i had requested for BraTS 2019 datset.when i tried to open seg.nii files and to convert them into png files, all of them were totally black. could you help?!

Mehrdad-Noori commented 4 years ago

I think it is because of the range of the pixel values in segmentation file (0,1,2,4 values). You should try to re-scale it between 0,1 (or 0,255 based on the library) and then save it in PNG format.

rezababaee759 commented 4 years ago

oh yes. thanks so much