DICOMDIRINTERFACE

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
prakash
Posts: 50
Joined: Mon, 2008-05-19, 10:34
Contact:

DICOMDIRINTERFACE

#1 Post by prakash » Wed, 2008-06-11, 08:54

Can any body help me how to create a DICOMDIR for jpeglossy and jpeg lossless compressed images.

I tried with the following code:
DJDecoderRegistration::registerCodecs(EDC_photometricInterpretation, EUC_default, EPC_default,OFTrue);
DcmCodecList::canChangeCoding(EXS_JPEGProcess1TransferSyntax, EXS_LittleEndianExplicit);
DcmCodecList::canChangeCoding(EXS_JPEGProcess14SV1TransferSyntax, EXS_LittleEndianExplicit);
DicomDirInterface* ddir=new DicomDirInterface();
ddir->enableAbortMode(OFFalse);
OFCondition result;
result = ddir->createNewDicomDir( DicomDirInterface::AP_GeneralPurposeDVD ,"C:\\DICOMDIR");
if (result.bad())
return 100565;
result = ddir->setFilesetDescriptor("DICOMDIR");
//ddir->enableInventPatientIDMode(OFTrue);
//ddir->enableInventMode(OFTrue);
ddir->disableBackupMode();
ddir->disableConsistencyCheck();
ddir->enableMapFilenamesMode();
ddir->enableIconImageMode();
ddir->disableEncodingCheck();
ddir->disableResolutionCheck();
ddir->disableTransferSyntaxCheck();
ddir->setLogStream(&(OFConsole::instance()));
//ddir->checkSOPClassAndXfer(
result = ddir->addDicomFile("CDDIR\\I13","C:\\");
if (result.bad())
return 15459;
result = ddir->writeDicomDir(EET_ExplicitLength, EGL_withGL);
Thanks in advance
Pls help me , if any body is having code snippet is also fine..

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Majestic-12 [Bot] and 1 guest