Do you have a question?

First Name:
Surname:
Email:
Phone:
Message:
Get Audio Code

Delete some frames in a multi-frame dicom file and save
Last Post 23 May 2012 12:14 AM by stewart. 2 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Resolved
zlfUser is Offline
New Member
New Member
Posts:23

--
18 May 2012 11:12 AM  

Hi,

I have a multi-frame dicom file. How to delete some frames, then save the trimmed one to another dicom file?

Regards,

zlf

zlfUser is Offline
New Member
New Member
Posts:23

--
19 May 2012 12:36 PM  
Reassign df.DataSet[DicomTags.PixelData] will be ok.
stewartUser is Offline
Veteran Member
Veteran Member
Posts:2359

--
23 May 2012 12:14 AM  
You can do it by simply reassigning the PixelData attribute, but then you have to figure out how to extract the frames from the source image.

Alternately, DicomUncompressedPixelData has AppendFrame and ReplaceFrame methods. You can create a new DicomUncompressedPixelData, pick out only those frames you want from the original (via GetFrame) and append them to the new one. Note that you will probably have to set up the destination DicomFile's DataSet correctly (e.g. NumberOfFrames, BitsAllocated, BitsStored, etc) before you start trying to append frames.
You are not authorized to post a reply.

Active Forums 4.1