Convert all DICOM (.dcm) images in a folder to JPG/PNG and extract all patients information in a '.csv' format in a go using python.
For image processing or image classification the most popular supported file system is JPG / PNG. So it's really difficult to work with a '.dcm' image. The following code will convert all your '.dcm' images in a folder to JPG or PNG just by specifying the folder path and also extract all information stored in DICOM file.