Imported from https://github.com/IzPerfect/CT_Image_Segmentation