junqiangchen / LiTS---Liver-Tumor-Segmentation-Challenge

LiTS - Liver Tumor Segmentation Challenge
MIT License
234 stars 73 forks source link

How to convert *.nii to *.bmp? #6

Closed hongson23 closed 5 years ago

hongson23 commented 5 years ago

Hello @junqiangchen, Thank you for your project I have tried to predict some data-set but results are not good.
Maybe source image which is converted from .nii file wrong. I use https://github.com/kirsebaer/nii2img for convert .nii to *.bmp Could you please sharing code to convert .nii to .bmp image?

junqiangchen commented 5 years ago

hi, you can use simpleitk load .nii file and save ndarray into .bmp file.