Replies: 1 comment 12 replies
-
I can't think of any way to do this directly in pydicom presently, but I can think of one possible workaround:
|
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
As a little background. I want to generate a dicom file that stores an image stack from a group of jpgs.
On a small scale, I am able to implement this by creating an array that stores np.arrays (where one np.array is from calling np.array() on a single jpg. From here, I just pass the frame array into ds.PixelData when creating a dicom file.
However, this is not doable on a large scale due to memory constraints (the ram would be all used up).
Question:
Is it possible to append np.arrays in chunks to a dicom file rather than passing the full np.array into ds.PixelData?
Thank you very much!
Beta Was this translation helpful? Give feedback.
All reactions