This brain tumor dataset containing 3064 T1-weighted contrast-inhanced images from 233 patients with three kinds of brain tumor: meningioma (708 slices), glioma (1426 slices), and pituitary tumor (930 slices). Due to the file size limit of repository, we split the whole dataset into 4 subsets, and achive them in 4 .zip files with each .zip file containing 766 slices.The 5-fold cross-validation indices are also provided (cvind.mat).
cjdata.label: 1 for meningioma, 2 for glioma, 3 for pituitary tumor
cjdata.PID: patient ID
cjdata.image: image data
cjdata.tumorBorder: a vector storing the coordinates of discrete points on tumor border. For example, in [x1, y1, x2, y2,...], (xi, yi) are planar coordinates on the tumor border. They were generated by manually delineating the tumor border. So we can use it to generate binary image of tumor mask.
cjdata.tumorMask: a binary image with 1s indicating the tumor region
input_folder = 'your input path';
output_folder = 'your output path';
file_list = dir(fullfile(input_folder, '*.mat'));
for i = 1:numel(file_list)
file_name = file_list(i).name;
file_path = fullfile(input_folder, file_name);
mat_data = load(file_path);
cjdata = mat_data.cjdata;
im1 = double(cjdata.image);
min1 = min(im1(:));
max1 = max(im1(:));
im = uint8(255/(max1-min1)*(im1-min1));
label = cjdata.label;
label_folder = fullfile(output_folder, num2str(label));
if ~exist(label_folder, 'dir')
mkdir(label_folder);
end
[~, file_name_base, ~] = fileparts(file_name);
output_file_path = fullfile(label_folder, strcat(file_name_base, '.jpg'));
imwrite(im, output_file_path);
end
No further details are available due to the long passage of time.
Cheng, Jun, et al. "Retrieval of Brain Tumors by Adaptive Spatial Pooling and Fisher Vector Representation." PloS one 11.6 (2016). Matlab source codes are available on github https://github.com/chengjun583/brainTumorRetrieval
Contact information
Jun Cheng
School of Biomedical Engineering
Shenzhen University, Shenzhen, China
Email: chengjun583@qq.com