Questions tagged [pydicom]

pydicom is a pure Python package for working with DICOM files such as medical images, reports, and radiotherapy objects.

pydicom is a pure Python package for working with DICOM files. pydicom makes it easy to read these complex files into natural pythonic structures for easy manipulation. Modified datasets can be written again to DICOM format files.

Resources

276 questions
-2
votes
1 answer

How to read multiple DICOM files from a folder?

I have the following code in which I am loading a single DICOM file and checking if there are sagittal and coronal view present or not. I want to modify this to read all DICOM files from the folder. print there is no sagittal and coronal view if…
-2
votes
1 answer

How to overlay the RTDOSE and Image data in the correct position?

I'm currently an MS student in Medical Physics and I have a great need to be able to overlay an isodose distribution from an RTDOSE file onto a CT image from a .dcm file set. I've managed to extract the image and the dose pixel arrays myself using…
-3
votes
1 answer

write dicom header to csv

I've got a bunch of .dcm-files (dice-files) where I would like to extract the header and save the information there in a CSV file. As you can see in the following picture, I've got a problem with the delimiters: For example when looking at the…
T-Man
  • 47
  • 9
-3
votes
2 answers

Nib.load() error - Trying to load PNG and DICOM images to be resized for FCNN

Have 40 DICOM and 40 PNG images (data and their masks) for a Fully CNN that are loaded into my Google Drive and have been found by the notebook via the print(os.listdir(...)), as evidenced below in the first block of code where all the names of the…
user13349602
-5
votes
2 answers

How to identify whether a file is DICOM or not which has no extension

I have few files in my GCP bucket folder like below: image1.dicom image2.dicom image3 file1 file4.dicom Now, I want to even check the files which has no extension i.e image3, file1 are dicom or not. I use pydicom reader to read dicom files to get…
Shanti
  • 13
  • 4
1 2 3
18
19