MATLAB: How to modify imageDatastore function to be able to support reading DCM medical images.

Computer Vision Toolboxdeep learningimagedatastore

I am in the process of developing code to be able to utlize Matlab's deep learning capabilities for medical image classification. To be able to accomplish this I need to be able to utlize the imageDatastore function. This function does not support reading dcm images. Is there a way to modify this function to be able to support reading dcm images?

Best Answer

Did you try dicomread()?
imds = imageDatastore('peppers.png','ReadFcn',@dicomread);
or something like that? See the help. Or else just use it to get the filenames and read it with a call to dicomread().
Related Question