shape_exception_handling.m
659 Bytes
data_path = '..\data\MICCAI_BraTS_2019_Data_Training\HGG_seg_flair\BraTS19_CBICA_AVG_1_seg_flair.nii';
data = niftiread(data_path);
cp_data = flipud(rot90(mat2gray(double(data(:,:,82)))));
type = '.png';
filename = strcat('BraTS19_CBICA_AVG_1_seg_flair_8', type); % BraTS19_2013_2_1_seg_flair_c.png
outpath = strcat('..\data\MICCAI_BraTS_2019_Data_Training\zero to valid\', filename);
imwrite(cp_data, outpath);
% st, end 10
%% (circle 0, ellipse 0)
% BraTS19_CBICA_AOP_1_seg_flair_0
% BraTS19_CBICA_ASF_1_seg_flair_9 -> 8
% BraTS19_CBICA_ASR_1_seg_flair_8
% BraTS19_CBICA_ASR_1_seg_flair_9
% BraTS19_CBICA_AVG_1_seg_flair_9 -> 8
%
%
%
%
%
%
%
%
%
%
%
%