We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Native DICOM image support
Images in medical datasets are usually stored in .dcm format which includes other metadata.
To get pixel values from .dcm image, first install the libraries:
pip install pydicom pylibjpeg
Here's a code snippet to get the pixel values from a .dcm image.
.dcm
import pydicom dicom_file_path = "1000.dcm" dicom_image = pydicom.dcmread(dicom_file_path) pixel_data = dicom_image.pixel_array import matplotlib.pyplot as plt plt.imshow(pixel_data, cmap=plt.cm.gray) plt.show()
Data from Kaggle RSNA challenge.
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Feature Name
Native DICOM image support
Feature Description
Images in medical datasets are usually stored in .dcm format which includes other metadata.
To get pixel values from .dcm image, first install the libraries:
Here's a code snippet to get the pixel values from a
.dcm
image.Data from Kaggle RSNA challenge.
Contact Information [Optional]
No response
The text was updated successfully, but these errors were encountered: