Tuesday, May 21, 2013
Google Custom Search

Our Community

Membership Membership:
Latest New User Latest: jwmmd
New Today New Today: 0
New Yesterday New Yesterday: 13
User Count Overall: 28657

People Online People Online:
Visitors Visitors: 8
Members Members: 2
Total Total: 10

Online Now Online Now:
01: quynhnguyen
02: jyothi

ClearCanvas Community Forums

We've moved our Developer Forums!
To better assist our open source community, we have moved our repository and developer forums to GitHub. You can access the new developer forums on our ClearCanvas GitHub issues board.

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

--
2012-05-18 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

zlf
Basic Member
Basic Member
Posts:23

--
2012-05-19 12:36 PM
Reassign df.DataSet[DicomTags.PixelData] will be ok.
stewart
Senior Member
Senior Member
Posts:2336

--
2012-05-23 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.
Live and real-time support available for Personal and Team Edition customers
You are not authorized to post a reply.

Active Forums 4.1
Copyright 2013 ClearCanvas Inc. All Rights Reserved