Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Convert Multiframe to Single Dicom to import in tps

12 views
Skip to first unread message

Rechlalef

unread,
Dec 11, 2024, 4:50:01 AM12/11/24
to pydicom
Hello all,

I try to import a MR files into Eclipse, but it cannot read the mr files. I have to use dcm4che to convert multiframe to single frame. I tried the module "encaps. generate_frames()" with pydicom. I have no error message, but files are still in multiframe. Is it a way to convert Multiframe in Singleframe with pydicom ?

Best regards,

Achraf

Darcy M

unread,
Dec 12, 2024, 1:04:20 PM12/12/24
to pydicom
I've never actually done this, but have some ideas on how I think it should be done.  Pydicom has no ability to do this directly.

The `generate_frames()` function just gives you the frame pixel data - you'd have to loop through each frame, store that to the pixel data of a Dataset, and create/edit other DICOM data elements appropriately (SOP Class UID, image rows/cols, pixel spacing, bits stored, photometric interpretation, slice location, etc.,), generate an SOP instance UID for each frame, and save each as a separate file.  You could probably start with a copy of the Dataset from your multiframe file and modify the elements as needed.

That's just a general idea, I probably have missed some of the data elements that would need to be set.

achraf touzani

unread,
Dec 17, 2024, 5:06:11 AM12/17/24
to pyd...@googlegroups.com

Thanks for your help and yours suggestions, i will try in that way.

Best regards,

Achraf


--
You received this message because you are subscribed to the Google Groups "pydicom" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pydicom+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pydicom/a23823a8-39c9-4b5a-a612-c09e9c131a67n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages