[Solved] Converting DICOM files to JPEG files for use in Inception V3


import os
import dicom
import matplotlib.image as image

os.chdir("path/to/dicom.dcm")
dicom_file = dicom.read_file("dicom.dcm")
dicom_array = dicom_file.pixel_array
image.imsave("dicom.jpg", dicom_array)

1

solved Converting DICOM files to JPEG files for use in Inception V3