1,148 questions
Best practices
0
votes
1
replies
43
views
Installation of dcmtk on debian 8
I am trying to install and run dcmtk, g++, gcc, cmake and, make on beaglebone black board with debian 8 OS. I am not able to fine certain files in archive. Is it because the OS version is too old? How ...
Best practices
0
votes
10
replies
111
views
How to read all DICOM tags using DCMTK C++?
I have an existing application, in which I was using GDCM to read DICOM tags. I've decided to move to DCMTK for better compatibility. Given a specified DICOM filename... what is a way to read all ...
4
votes
2
answers
136
views
Getting the tag path of a particular DcmElement
I am using dcmtk to retrieve the list of all DCM_CodeMeaning contained in a DcmDataset:
DcmDataset* dataset = file_format.getDataset();
DcmStack result_stack;
const OFCondition condition =
dataset-...
0
votes
3
answers
234
views
Cropping DICOM image fragment in Python
I want to crop a fragment of DICOM (.dcm) file in Python, and then save such an image.
I was trying to do such thing using pydicom, openslide or opencv(cv2) library, without success.
For example I ...
0
votes
2
answers
115
views
How to avoid AttributeError in multiple labels
I have dicom files from different sources and sometimes i get error like this:
AttributeError: 'FileDataset' object has no attribute 'PatientAge'
because some files doesn't have this attribute.
I've ...
0
votes
1
answer
216
views
NIfTI and DICOM dimensions mismatch despite matching orientations in python using pydicom and nibabel?
Description:
I am working on aligning a NIfTI image to a DICOM coordinate system pixel by pixel. I followed the blog Aligning a DICOM to a NIFTI, pixel-by-pixel, to implement the transformation. ...
0
votes
1
answer
134
views
How to use BitsAllocated and PixelRepresentation to read image
I am using dcmtk to read dicom. In this dicom, the BitsAllocated=16, and PixelRepresentation=1. It means the type of pixel data is a signed int 16. Then, I use e->getSInt16Array(pImg) to read ...
1
vote
1
answer
370
views
How to read the per-frame info from a multi-frame dicom
I am using dcmtk to read a dicom. This dicom file contains 100 image. Each image has a PatientPosition. How can I get these 100 PatientPosition?
If DicomImage can provide the 100 PatientPosition?
If ...
1
vote
1
answer
154
views
Problem with PixelData when writing 3D numpy array to DICOM
I want to write a grayscale 3D pixel array to DICOM, but I have no previous experience with this daunting file format.
Minimum reproducible example:
I've used pydicom and get error that I think is ...
1
vote
1
answer
164
views
How to sort DICOM images in reverse order (by Slice Location) with SimpleITK?
I am new to SimpleITK, so I would really appreciate any help! My question is specific to SimpleITK (not Pydicom).
I imported CT DICOM slices from a directory and opened them using SimpleITK. The ...
1
vote
1
answer
98
views
multiplying a constant value in a dicom RT Dose
I am beginner in Python. I have exported the RT Dose file from treatment planning system and I want to multiply its voxel values in a constant value (int or float). I have written the following code ...
3
votes
1
answer
265
views
16-byte offset in MPEG-4 video export from DICOM file
Short version: Where is the 16-byte offset coming from when exporting an MPEG-4 video stream from a DICOM file with Pydicom via the following code? (And, bonus question, is it always a 16-byte offset?)...
1
vote
1
answer
126
views
Z-orientation of 3D RTDOSE pixel data
I am in a position where I have a 3D numpy array with dose values, along with the ImagePositionPatient DICOM values for each slice. These position values are extracted from a CT DICOM series which I ...
1
vote
1
answer
464
views
Is there really no pixel data in DICOM files of SOP Class RawDataStorage?
I'm working on a project that securely moves DICOM files from one facility to another (PACS to PACS link, much like a VPN but without all the associated headaches in management and maintenance etc) ...
2
votes
1
answer
413
views
Which DICOM Tag should we use to differentiate between the series?
We've been working on DICOM datasets for a while and we have the following problem right now. We have been dealing with the Prostate-MRI case and we have the difficulty to distinguish between ...