Questions tagged [pydicom]
pydicom is a pure Python package for working with DICOM files such as medical images, reports, and radiotherapy objects.
pydicom
284
questions
0
votes
0
answers
17
views
How to approximate procedure length using DICOM for modalities that don't support MPPS
I'm just starting to learn about DICOM and I'm wondering if there is a way that I can approximate the total amount of time it takes to perform an imaging study for modalities that do not have support ...
0
votes
0
answers
43
views
Inaccurate Multiplanar Reconstruction (MPR) of CTs in My PyQt5 DICOM Viewer - Mild Horizontal Stretching
Question:
I'm developing a DICOM viewer application using PyQt5 that includes multiplanar reconstruction (MPR) similar to OsiriX/Horos. However, I'm encountering an issue where the images appear ...
0
votes
1
answer
21
views
When using pydicom to read an RGB DICOM image, does it automatically convert it to the format (x, y, channel)?
When using pydicom to read an RGB DICOM image, does it automatically convert it to the format (x, y, channel)? This is because my Planar Configuration is 1, but the size of pixel_data is (301, 301, 3)....
1
vote
1
answer
96
views
Get 3D affine transformation matrix from mri DICOM files
I have both RTDose and MRI information in DICOM format. Unfortunately raw MRI and RTDose files share not only different dimensions but incompatible actual spacing as well.
Looking Here I've been ...
0
votes
0
answers
40
views
Displaying CT image in 3 views (sagittal, coronal, axial)
I am beginner in Python. I want to display the CT images in three views: sagittal, axial and coronal.
Using examples and sample codes I searched, I wrote the below code, but I have two problems:
With ...
0
votes
0
answers
44
views
Contour detection with dicom imaging
I am currently working on image segmentation on dicom files, and I will have to distinguish between areas of the image, but due to the image noise, its hard to find the big faint square.
this is the ...
0
votes
1
answer
145
views
pydicom.dcmread() consumes a lot of memory when working with bigger files
Is there a way where we can read the dicom file using buffer?
I tried defer_size = '50 MB' , but when i accessed pixel data, all the pixel data was read and stored in memory
Can I do something like:
...
0
votes
0
answers
193
views
Deleting dicom tags completely from every folder in a file
My long goal is to trick a piece of software into thinking it's handling CT data instead of MRI data. So I want to delete all the dicom tags associated with MR data and replace them with CT specific ...
0
votes
1
answer
127
views
Unable to load DICOM images using Pydicom inside tf.data.Dataset
I'm trying to make a data generator to load DICOM images in batches to use in model.fit using Tensorflow:
dataset = tf.data.Dataset.from_tensor_slices((file_names, annotations))
dataset = dataset.map(...
0
votes
1
answer
149
views
Import standard tags to a DICOM file with pydicom
I am trying to create a program that can add multiple undefined tags in DICOM files.
For the moment, I'd import the tags and values thanks to a CSV file.
This is my current code, it parse through the ...
1
vote
1
answer
99
views
Receive private SOPClassUID images in pydicom
I am trying to accept all the presentation contexts in the association negotiation.
After adding the abstract syntax to the supported context, the association is getting aborted. Logs -
D: Accept ...
0
votes
0
answers
128
views
I can't open dcm file
Please tell me, when I try to open a dcm file, an error occurs, I use the pydicom library, how can I fix it?
base = r"D:\fff"
pass_dicom = "dd.dcm"
# enter DICOM image name for ...
0
votes
0
answers
140
views
AttributeError: 'FileDataset' object has no attribute 'Modality'
I am a novice to ML and trying to apply TotalSegmentator to my .dcm files. Initially, I was trying to convert my dcm files to nifti using dicom2nifti but I got this error
AttributeError: 'FileDataset' ...
0
votes
1
answer
346
views
Create a new private tags in a DICOM file
I am currently trying to build a plug-in for Orthanc, an open-source server for DICOM Images.
That plug-in will be a viewer that will need some metadata of the images to work properly. Metadata that ...
0
votes
0
answers
330
views
How to correctly to combine a set of images into one dicom file?
I am attempting to create a multi-frame DICOM file from a set of more than 300 sequential .PNG images. While I've successfully generated a DICOM file with 375 frames, the frames have overlapping and ...