Replies: 4 comments
-
Yes, there is a size limit of 2GB in the content of a DICOM tag, which you see to exceed. It is possible to save data that is larger than that using a compressed transfer syntax, if the compressed size is not smaller than 2 GB, or you just have to split up the video. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the quick response! Do you mean that I have to compress if the data exceeds 2GB? If so, do you know how should I compress my video? I am open to any method as long as my video can be saved as dicom and can be read using |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, I have no experience at all with videos in DICOM. There are several MPEG4 based transfer syntaxes in DICOM, but to my knowledge |
Beta Was this translation helpful? Give feedback.
-
I can't add anything to what @mrbean-bremen has said. I don't know of anyone manipulating dicom files with video using pydicom. |
Beta Was this translation helpful? Give feedback.
-
I am trying to combine several dicom files in a larger one using python3 with
pydicom
library and encounters an error message I do not understand.Let several dicom files be given. We assume that each dicom file contains a video. That is, after calling
pydicom.dcmread
and calling thepixel_array
, I get a numpy array in shape(number_of_frames, rows, columns, 3)
, withnumber_of_frames > 0
. We will also assume that each dicom only differs in number of frames.So I read their
pixel_array
, usenumpy
to concatenate them, and gets a bigger video with more frames. I would like to save this bigger video as another dicom. So I write the new video into afiledataset
and callsave_as
inpydicom
library. It turns out that:(6000,500,500,3)
), then I get the following error:I do not understand this error message. What exactly goes wrong? It seems my video is too large (?). Is there any way to help me save my concatenated video?
(StackExchange version of this post: https://stackoverflow.com/questions/76799001/range-of-pixel-data-for-a-dicom-file)
Beta Was this translation helpful? Give feedback.
All reactions