dcm2fmt.m converts dicom files existing in hospitals ... into any image format. It can convert a file.dcm to image.bmp or image.jpg as you want to process.
1. Run dcm2fmt.m code.
2. Chose your file.dcm (dicom), I have attached it with this code.
3. Chose image format needed to be saved in your pc.
Said BOUREZG (2020). DICOM to any Image Format Converter (https://www.mathworks.com/matlabcentral/fileexchange/49882-dicom-to-any-image-format-converter), MATLAB Central File Exchange. Retrieved .
Inspired by: xiangruili/dicm2nii