Need to convert a DICOM file into matlab format, as DICOM file have a large no. of images and by converting it into .mat file, we can load it as a single file.
Dear Arvind Kumar , Matlab itself a powerful tool that can convert any readable data file format into matlab (.mat) file. First, you need to download the DICOM files and save it into a folder. Follow the set of code to execute the task in Matlab software:
Opt-1: Read and visualize a single DICOM file
%%To read and visualize any sample DICOM file in Matlab
I = dicomread('filename.dcm'); %Read Image Data from DICOM Files
figure;
imshow(I,'DisplayRange',[]) %View DICOM Images
Opt-2: Read DICOM images from folder and save them into .mat file
%% Read DICOM images from folder and save them into .mat file