33 #include "dcmtk/config/osconfig.h"
35 #include "dcmtk/dcmdata/dcdicdir.h"
43 #define DEFAULT_FILESETID "DCMTK_MEDIA_DEMO"
45 #define DEFAULT_DESCRIPTOR_CHARSET "ISO_IR 100"
75 virtual OFBool
scaleData(
const Uint8 *srcData,
76 const unsigned int srcWidth,
77 const unsigned int srcHeight,
79 const unsigned int dstWidth,
80 const unsigned int dstHeight)
const = 0;
95 const unsigned long count,
96 const unsigned long frame,
97 const unsigned int width,
98 const unsigned int height,
99 const OFBool decompressAll = OFFalse)
const = 0;
194 const char *filename = DEFAULT_DICOMDIR_NAME,
195 const char *filesetID = DEFAULT_FILESETID);
209 const char *filename);
223 const char *filename);
232 const E_GrpLenEncoding groupLength = EGL_withoutGL);
244 const OFBool allowEmpty = OFFalse);
266 const char *directory = NULL);
278 const char *directory = NULL);
290 const char *charset = DEFAULT_DESCRIPTOR_CHARSET);
560 const char *directory,
571 const char *filename);
579 const char *filename);
589 const char *filename);
597 const char *filename);
607 const char *filename);
617 const char *filename);
627 const char *filename);
648 const E_DirRecType recordType,
1029 const unsigned long count,
1030 const unsigned int width,
1031 const unsigned int height);
1044 const unsigned long count,
1045 const unsigned int width,
1046 const unsigned int height);
1060 const unsigned int size,
1073 const E_DirRecType recordType,
1095 const OFBool recurse = OFTrue);
1129 const char *filename = NULL,
1130 const OFBool errorMsg = OFTrue);
1140 const char *filename = NULL,
1141 const OFBool emptyMsg = OFFalse);
1152 const char *operation);
1162 const E_DirRecType recordType,
1163 const char *operation);
1170 OFBool
copyFile(
const char *fromFilename,
1171 const char *toFilename);
1183 const OFBool abortCheck = OFFalse);
1199 const char *filename = NULL);
1209 const char *filename = NULL);
1221 const char *filename = NULL);
1234 const char *filename = NULL,
1235 const OFBool reject = OFTrue);
1250 const char *filename = NULL,
1251 const OFBool reject = OFTrue);
1263 OFBool searchIntoSub = OFFalse);
1276 const unsigned long pos,
1277 OFBool searchIntoSub = OFFalse);
1289 OFBool searchIntoSub = OFFalse);
1303 const OFBool optional = OFFalse,
1304 const OFBool copyEmpty = OFTrue);
1317 copyElement(dataset, key, record, sourceFilename, OFFalse , OFFalse );
1331 copyElement(dataset, key, record, sourceFilename, OFTrue , OFFalse );
1345 copyElement(dataset, key, record, sourceFilename, OFFalse , OFTrue );
1359 copyElement(dataset, key, record, sourceFilename, OFTrue , OFTrue );
1375 const char *defaultValue =
"",
1376 const OFBool printWarning = OFFalse);
1392 const OFBool errorMsg = OFFalse);
1414 const unsigned long number,
1415 const char *prefix = NULL);
OFBool inventMode() const
get current status of the "invent missing values" mode.
An interface class for simplified creation of a DICOMDIR.
void copyElementType1C(DcmItem *dataset, const DcmTagKey &key, DcmDirectoryRecord *record, const OFString &sourceFilename)
copy type 1C element from dataset to directory record
DcmDirectoryRecord * buildVoiLutRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename)
create or update VOI LUT record and copy required values from dataset
OFString DefaultIcon
filename of the default icon (if any)
a class representing a list of DICOM elements in which each element has a different tag and elements ...
OFCondition updateDicomDir(const E_ApplicationProfile profile, const char *filename)
create a DICOMDIR object based on an existing DICOMDIR file (update).
OFBool checkExistsWithIntegerValue(DcmItem *dataset, const DcmTagKey &key, const long value, const char *filename=NULL, const OFBool reject=OFTrue)
check whether given tag exists in the DICOM dataset and has the expected integer value ...
DicomDirImagePlugin * ImagePlugin
pointer to the optional image plugin (required for icon image support)
Ultrasound Single Frame with Spatial Calibration (STD-US-SC-SF-xxxx)
class maintaining a attribute tag (group and element number)
DcmDirectoryRecord * buildImplantAssyRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename)
create or update implant assy record and copy required values from dataset
a class representing a directory record dataset in a DICOMDIR.
DcmDirectoryRecord * addRecord(DcmDirectoryRecord *parent, const E_DirRecType recordType, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename)
add child record to a given parent record.
OFBool RLESupport
flag indicating whether RLE decompression is supported
void deleteDicomDirBackup()
delete backup file if one has been created
OFBool ConsistencyCheck
check consistency of newly added record
OFBool isDicomDirValid() const
check whether current DICOMDIR is valid.
OFBool checkExistsWithStringValue(DcmItem *dataset, const DcmTagKey &key, const OFString &value, const char *filename=NULL)
check whether given tag exists in the DICOM dataset and has the expected string value ...
OFBool InventMode
invent missing attributes mode
OFBool BackupMode
create DICOMDIR backup
Abstract interface to plugable image support for the DICOMDIR class.
OFBool EncodingCheck
check pixel encoding
Ultrasound Single & Multi-Frame with Combined Calibration (STD-UD-CC-MF-xxxx)
General Purpose DVD with Compression Interchange (STD-GEN-DVD)
OFString BackupFilename
name of the DICOMDIR backup file
OFBool FilesetUpdateMode
update existing fileset
void printAttributeErrorMessage(const DcmTagKey &key, const OFCondition &error, const char *operation)
print an error message that something went wrong with an attribute.
DcmDirectoryRecord * buildSpectroscopyRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename)
create or update spectroscopy record and copy required values from dataset
DcmDirectoryRecord * buildEncapDocRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename)
create or update encap doc record and copy required values from dataset
OFBool disableBackupMode(const OFBool newMode=OFFalse)
disable/enable the "create backup file" mode.
unsigned long AutoCurveNumber
current curve number used to invent missing attribute values
DcmDirectoryRecord * buildValueMapRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename)
create or update value map record and copy required values from dataset
static const char * getProfileName(const E_ApplicationProfile profile)
get name/identifier associated with the given application profile
OFBool disableConsistencyCheck(const OFBool newMode=OFFalse)
disable/enable the "consistency check".
void printRequiredAttributeMessage(const DcmTagKey &key, const char *filename=NULL, const OFBool emptyMsg=OFFalse)
print an error message that a required attribute is missing/empty.
Basic Cardiac X-Ray Angiographic Studies on CD-R Media (STD-XABC-CD)
DcmDirectoryRecord * buildImageRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename)
create or update image record and copy required values from dataset
OFBool iconImageMode() const
get current status of the "create icon images" mode.
DcmDirectoryRecord * buildPresentationRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename)
create or update presentation state record and copy required values from dataset
OFBool checkExistsWithValue(DcmItem *dataset, const DcmTagKey &key, const char *filename=NULL)
check whether given tag exists with a value in the DICOM dataset
OFCondition checkMandatoryAttributes(DcmMetaInfo *metainfo, DcmItem *dataset, const char *filename)
check attributes for comliance with current application profile
DcmDirectoryRecord * buildOverlayRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename)
create or update overlay record and copy required values from dataset
OFString & getStringComponentFromDataset(DcmItem *dataset, const DcmTagKey &key, OFString &result, const unsigned long pos, OFBool searchIntoSub=OFFalse)
get string value component from dataset and report an error (if any)
DcmDirectoryRecord * buildHangingProtocolRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename)
create or update hanging protocol record and copy required values from dataset
OFBool checkExistsWithMinMaxValue(DcmItem *dataset, const DcmTagKey &key, const long min, const long max, const char *filename=NULL, const OFBool reject=OFTrue)
check whether given tag exists in the DICOM dataset and has an integer value in the expected range ...
Dental Radiograph Interchange (STD-DEN-CD)
OFBool BackupCreated
flag indicating whether a backup has been created
unsigned long AutoLutNumber
current LUT number used to invent missing attribute values
OFCondition appendToDicomDir(const E_ApplicationProfile profile, const char *filename)
create a DICOMDIR object based on an existing DICOMDIR file (append).
OFCondition addDicomFile(const char *filename, const char *directory=NULL)
add specified DICOM file to the current DICOMDIR.
DcmDirectoryRecord * buildSurfaceRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename)
create or update surface record and copy required values from dataset
OFCondition checkDentalRadiographAttributes(DcmItem *dataset, const char *filename)
check attributes for compliance with dental radiograph application profile
OFString & getStringFromFile(const char *filename, const DcmTagKey &key, OFString &result, OFBool searchIntoSub=OFFalse)
get string value from file and report an error (if any)
default application profile: GeneralPurpose
unsigned long AutoInstanceNumber
current instance number used to invent missing attribute values
OFCondition loadAndCheckDicomFile(const char *filename, const char *directory, DcmFileFormat &fileformat)
load and check DICOM file regarding the current application profile
DcmDirectoryRecord * buildRTPlanRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename)
create or update RT plan record and copy required values from dataset
Hemodynamic Waveform Interchange on Diskette (STD-WVFM-HD-FD)
OFString & getStringFromDataset(DcmItem *dataset, const DcmTagKey &key, OFString &result, OFBool searchIntoSub=OFFalse)
get string value from dataset and report an error (if any)
OFCondition selectApplicationProfile(const E_ApplicationProfile profile)
select given application profile
Ultrasound Single & Multi-Frame for Image Display (STD-US-ID-MF-xxxx)
void inventMissingInstanceLevelAttributes(DcmDirectoryRecord *parent)
invent missing type 1 attributes for all child records (from instance level)
OFCondition checkBasicCardiacAttributes(DcmItem *dataset, const char *filename)
check attributes for compliance with Basic Cardiac application profile
OFBool retiredSOPClassSupport() const
get current status of the "retired SOP class support" mode.
OFBool disableTransferSyntaxCheck(const OFBool newMode=OFFalse)
disable/enable the "transfer syntax check".
OFCondition setIconSize(const unsigned int size)
set preferred size of the icon images.
OFCondition checkDicomFile(const char *filename, const char *directory=NULL)
check whether specified DICOM file is suitable to be included into the DICOMDIR.
OFBool AbortMode
abort on first inconsistent record
DcmDirectoryRecord * findExistingRecord(DcmDirectoryRecord *parent, const E_DirRecType recordType, DcmItem *dataset)
search for a given directory record
void inventMissingAttributes(DcmDirectoryRecord *parent, const OFBool recurse=OFTrue)
invent missing type 1 attributes for all child records (from patient level)
1024 X-Ray Angiographic Studies on CD-R Media (STD-XA1K-CD)
OFBool addImageSupport(DicomDirImagePlugin *plugin)
add pluggable image support.
void copyElementType1(DcmItem *dataset, const DcmTagKey &key, DcmDirectoryRecord *record, const OFString &sourceFilename)
copy type 1 element from dataset to directory record
this class implements support for DICOMDIR files, which are special DICOM files containing a list of ...
DcmDirectoryRecord * buildRTDoseRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename)
create or update RT dose record and copy required values from dataset
virtual ~DicomDirImagePlugin()
destructor (virtual)
OFCondition checkSOPClassAndXfer(DcmMetaInfo *metainfo, DcmItem *dataset, const char *filename)
check SOP class and transfer syntax for compliance with current profile
OFBool enableInventMode(const OFBool newMode=OFTrue)
enable/disable the "invent missing values" mode.
void setDefaultValue(DcmDirectoryRecord *record, const DcmTagKey &key, const unsigned long number, const char *prefix=NULL)
set default value (number or prefix and number) to a given tag
General Purpose Interchange on CD-R or DVD-RAM Media (STD-GEN-CD/DVD-RAM)
E_ApplicationProfile ApplicationProfile
currently selected application profile
DcmDirectoryRecord * buildRTStructureSetRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename)
create or update RT structure set record and copy required values from dataset
DcmDirectoryRecord * buildMeasurementRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename)
create or update measurement record and copy required values from dataset
DcmDirectoryRecord * buildModalityLutRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename)
create or update modality LUT record and copy required values from dataset
OFString IconPrefix
filename prefix for the external icon images
DVD Interchange with MPEG2 MP@ML (STD-DVD-MPEG2-MPML)
OFCondition checkUltrasoundAttributes(DcmItem *dataset, const OFString &transferSyntax, const char *filename)
check attributes for compliance with Ultrasound application profiles
DcmDirectoryRecord * buildPatientRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &sourceFilename)
create or update patient record and copy required values from dataset
OFCondition setFilesetDescriptor(const char *filename, const char *charset=DEFAULT_DESCRIPTOR_CHARSET)
set the fileset descriptor file ID and character set.
OFBool ResolutionCheck
check image resolution
OFBool checkExists(DcmItem *dataset, const DcmTagKey &key, const char *filename=NULL)
check whether given tag exists in the DICOM dataset
DicomDirInterface & operator=(const DicomDirInterface &obj)
private undefined assignment operator
OFBool backupMode() const
get current status of the "create backup" mode.
DcmDirectoryRecord * buildStoredPrintRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename)
create or update stored print record and copy required values from dataset
void copyElementType2(DcmItem *dataset, const DcmTagKey &key, DcmDirectoryRecord *record, const OFString &sourceFilename)
copy type 2 element from dataset to directory record
12-lead ECG Interchange on Diskette (STD-WVFM-ECG-FD)
DcmDirectoryRecord * buildStudyRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &sourceFilename)
create or update study record and copy required values from dataset
DicomDirImagePlugin()
constructor (protected)
OFBool JP2KSupport
flag indicating whether JPEG 2000 decompression is supported
Ultrasound Single Frame for Image Display (STD-US-ID-SF-xxxx)
void inventMissingStudyLevelAttributes(DcmDirectoryRecord *parent)
invent missing type 1 attributes for all child records (from study level)
OFBool copyFile(const char *fromFilename, const char *toFilename)
copy contents of specified file
unsigned long AutoSeriesNumber
current series number used to invent missing attribute values
void cleanup()
reset the object to its initial state.
OFBool resolutionCheck() const
get current status of the "spatial resolution check" mode.
void copyElementType3(DcmItem *dataset, const DcmTagKey &key, DcmDirectoryRecord *record, const OFString &sourceFilename)
copy type 3 element from dataset to directory record
OFBool isFilenameValid(const char *filename, const OFBool allowEmpty=OFFalse)
check whether specified filename is valid.
OFBool InventPatientIDMode
invent missing patient ID mode
unsigned int IconSize
size of the optional icon image in pixels
OFBool enableIconImageMode(const OFBool newMode=OFTrue)
enable/disable the "create icon images" mode.
DcmDirectoryRecord * buildImplantGroupRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename)
create or update implant group record and copy required values from dataset
DcmDirectoryRecord * buildStereometricRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename)
create or update stereometric record and copy required values from dataset
OFBool compareStringAttributes(DcmItem *dataset, const DcmTagKey &datKey, DcmDirectoryRecord *record, const DcmTagKey &recKey, const OFString &sourceFilename, const OFBool errorMsg=OFFalse)
compare string attribute from dataset and record and report any deviation
void printUnexpectedValueMessage(const DcmTagKey &key, const char *filename=NULL, const OFBool errorMsg=OFTrue)
print a message that the value of a given tag is unexpected.
OFCondition writeDicomDir(const E_EncodingType encodingType=EET_UndefinedLength, const E_GrpLenEncoding groupLength=EGL_withoutGL)
write the current DICOMDIR object to file.
OFBool IconImageMode
create icon images
OFBool encodingCheck() const
get current status of the "pixel encoding check" mode.
OFBool checkFilesetID(const OFString &filesetID)
check whether given fileset ID is valid
OFBool enableInventPatientIDMode(const OFBool newMode=OFTrue)
enable/disable the "invent new patient ID" mode.
CT/MR Studies (STD-CTMR-xxxx)
OFBool consistencyCheck() const
get current status of the "consistency check" mode.
OFBool compareSequenceAttributes(DcmItem *dataset, DcmTagKey &key, DcmDirectoryRecord *record, const OFString &sourceFilename)
compare sequence attribute from dataset and record and report any deviation
DcmDirectoryRecord * buildCurveRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename)
create or update curve record and copy required values from dataset
unsigned long AutoPatientNumber
current patient number used to invent missing attribute values
virtual OFBool scaleData(const Uint8 *srcData, const unsigned int srcWidth, const unsigned int srcHeight, Uint8 *dstData, const unsigned int dstWidth, const unsigned int dstHeight) const =0
scale image (pixel data) to specified size
OFCondition setIconPrefix(const char *prefix)
set filename prefix for alternative icon images.
OFBool RetiredSOPClassSupport
support retired SOP classes
unsigned long AutoOverlayNumber
current overlay number used to invent missing attribute values
virtual OFBool scaleImage(DcmItem *dataset, Uint8 *pixel, const unsigned long count, const unsigned long frame, const unsigned int width, const unsigned int height, const OFBool decompressAll=OFFalse) const =0
scale image (from DICOM dataset) to specified size
OFCondition createNewDicomDir(const E_ApplicationProfile profile=AP_GeneralPurpose, const char *filename=DEFAULT_DICOMDIR_NAME, const char *filesetID=DEFAULT_FILESETID)
create a new DICOMDIR object.
OFBool recordMatchesDataset(DcmDirectoryRecord *record, DcmItem *dataset)
check whether given directory record matches dataset.
DcmDirectoryRecord * buildRTTreatmentRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename)
create or update RT treatment record and copy required values from dataset
DcmDirectoryRecord * buildImplantRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename)
create or update implant record and copy required values from dataset
OFBool getIconFromFile(const OFString &filename, Uint8 *pixel, const unsigned long count, const unsigned int width, const unsigned int height)
create icon image from given PGM (portable gray map) file.
OFBool disableResolutionCheck(const OFBool newMode=OFFalse)
disable/enable the "spatial resolution check".
void createDicomDirBackup(const char *filename)
create backup of a given file
General Purpose MIME Interchange Profile (STD-GEN-MIME)
OFCondition setDefaultIcon(const char *filename)
set filename of default icon image.
DicomDirInterface()
constructor (default).
OFBool abortMode() const
get current status of the "abort on first error" mode.
OFBool inventPatientIDMode() const
get current status of the "invent missing patient ID" mode.
General Purpose USB and Flash Memory with Compression Interchange (STD-GEN-USB/MMC/CF/SD-JPEG/J2K) ...
E_ApplicationProfile
list of supported media storage application profiles
DcmDirectoryRecord * buildWaveformRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename)
create or update waveform record and copy required values from dataset
OFBool enableMapFilenamesMode(const OFBool newMode=OFTrue)
enable/disable the "map filenames" mode.
DcmDirectoryRecord * buildPaletteRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename)
create or update palette record and copy required values from dataset
OFBool JPEGSupport
flag indicating whether JPEG decompression is supported
OFBool mapFilenamesMode() const
get current status of the "map filenames" mode.
a simple string class that implements a subset of std::string.
OFBool isCharsetValid(const char *charset)
check whether given charset identifier is valid.
DcmDirectoryRecord * buildFiducialRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename)
create or update fiducial record and copy required values from dataset
void printRecordErrorMessage(const OFCondition &error, const E_DirRecType recordType, const char *operation)
print an error message that something went wrong with a given record.
DcmDirectoryRecord * buildKeyObjectDocRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename)
create or update key object doc record and copy required values from dataset
OFBool enableAbortMode(const OFBool newMode=OFTrue)
enable/disable the "abort on first error" mode.
OFBool warnAboutInconsistentAttributes(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &sourceFilename, const OFBool abortCheck=OFFalse)
see if all the attributes in record match the values in dataset and warn if not
Ultrasound Single & Multi-Frame with Spatial Calibration (STD-UD-SC-MF-xxxx)
OFBool disableEncodingCheck(const OFBool newMode=OFFalse)
disable/enable the "pixel encoding check".
DcmDirectoryRecord * buildRegistrationRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename)
create or update registration record and copy required values from dataset
virtual ~DicomDirInterface()
destructor (virtual).
OFBool MapFilenamesMode
automatically map filenames
OFBool transferSyntaxCheck() const
get current status of the "transfer syntax check" mode.
DcmDicomDir * DicomDir
pointer to the current DICOMDIR object
void copyStringWithDefault(DcmItem *dataset, const DcmTagKey &key, DcmDirectoryRecord *record, const OFString &sourceFilename, const char *defaultValue="", const OFBool printWarning=OFFalse)
copy optional string value from dataset to directory record
DcmDirectoryRecord * buildStructReportRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename)
create or update structure reporting record and copy required values from dataset ...
unsigned long AutoStudyNumber
current study number used to invent missing attribute values
void inventMissingSeriesLevelAttributes(DcmDirectoryRecord *parent)
invent missing type 1 attributes for all child records (from series level)
DcmDirectoryRecord * buildRawDataRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename)
create or update raw data record and copy required values from dataset
Ultrasound Single Frame with Combined Calibration (STD-US-CC-SF-xxxx)
OFCondition checkCTandMRAttributes(DcmItem *dataset, const OFString &sopClass, const char *filename)
check attributes for compliance with CT and MR application profile
OFBool enableRetiredSOPClassSupport(const OFBool newMode=OFTrue)
enable/disable the "retired SOP class support" mode.
void copyElement(DcmItem *dataset, const DcmTagKey &key, DcmDirectoryRecord *record, const OFString &sourceFilename, const OFBool optional=OFFalse, const OFBool copyEmpty=OFTrue)
copy element from dataset to directory record
OFBool checkReferencedSOPInstance(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &referencedFileID, const OFString &sourceFilename)
check referenced SOP instance for consistency with a new directory record
OFCondition checkXrayAngiographicAttributes(DcmItem *dataset, const OFString &sopClass, const char *filename)
check attributes for compliance with X-ray Angiography application profile
1024 X-Ray Angiographic Studies on DVD Media (STD-XA1K-DVD)
OFBool getIconFromDataset(DcmItem *dataset, Uint8 *pixel, const unsigned long count, const unsigned int width, const unsigned int height)
create icon image from DICOM dataset.
DcmDirectoryRecord * buildSeriesRecord(DcmDirectoryRecord *record, DcmItem *dataset, const OFString &sourceFilename)
create or update new series record and copy required values from dataset
General purpose class for condition codes.
OFBool TransferSyntaxCheck
check transfer syntax
OFCondition addIconImage(DcmDirectoryRecord *record, DcmItem *dataset, const unsigned int size, const OFString &sourceFilename)
add icon image sequence to directory record.