Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Fri, 2018-10-19, 17:25

All times are UTC + 1 hour

Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Fri, 2017-12-01, 04:10 

Joined: Thu, 2009-03-19, 04:19
Posts: 83
The first part of my codes:
DcmFileFormat fileformat;
OFCondition cond=fileformat.loadFile(sFileName.GetBuffer(0),EXS_JPEGProcess1);
DcmPixelData *pPixData;
cond=pDataset->findAndGetElement(DCM_PixelData,(DcmElement *&)pPixData);

Now I can manage the pixel data.

The second part:
DcmPixelSequence *pSeq = NULL;
E_TransferSyntax xferSyntax = EXS_Unknown;
const DcmRepresentationParameter *rep = NULL;
cond=pPixData->getEncapsulatedRepresentation(xferSyntax, rep, pSeq);

by which I can operate the pixel sequence.

The third part:
 DcmPixelItem *pItem;
DcmPixelItem *pItemBk=(DcmPixelItem *)pItem->clone();
DcmPixelSequence *pNewSeq=new DcmPixelSequence(DCM_PixelData);

But I don't believe that it will work well, though the cond is still "Normal".

These are all testing codes. What I hope to do are deleting some special frames in a large multiframe file and saving the rest into another file which has the same VR.

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group