MeVisLab Toolbox Reference
ml::RelatedMultiFileVolumeTools Namespace Reference

Functions

MLDIRECTDICOMIMPORTOUTPUTS_EXPORT void updateSourceImageReferences (DCMTree::Const_TreePtr dcmTree, MultiFileVolumeList &volList, std::set< size_t > &srcRefs, std::set< size_t > &forRefs, const std::string &sequenceScanConfig, DicomMessageCollector &dcmMsgCollector)
 Check dcmTree for ReferencedSOPInstanceUIDs according to sequenceScanConfig and for frame of reference uids tags.
 
MLDIRECTDICOMIMPORTOUTPUTS_EXPORT void setUpVolumeIndexFields (const std::set< size_t > &foundVolumeIndexes, IntField &firstRelatedVolumeIndexFld, StringField &relatedVolumeIndexesFld)
 Sets the first index from foundVolumeIndexes as index in firstRelatedVolumeIndexFld or -1 if foundVolumeIndexes is empty; relatedVolumeIndexesFld will be set to a space separated list of all indexes from foundVolumeIndexes or to an empty string if foundVolumeIndexes is empty.
 
MLDIRECTDICOMIMPORTOUTPUTS_EXPORT void setUpVolumeIndexFields (const std::set< size_t > &foundVolumeIndexes1, const std::set< size_t > &foundVolumeIndexes2, IntField &firstRelatedVolumeIndexFld, StringField &relatedVolumeIndexesFld)
 Generates an ordered sequence with all indexes from foundVolumeIndexes1 and appends all indexes from foundVolumeIndexes2 which still are not part of the sequence; the fields firstRelatedVolumeIndexFld and relatedVolumeIndexesFld then are set as described for setUpVolumeIndexFields with one set.
 

Variables

MLDIRECTDICOMIMPORTOUTPUTS_EXPORT const std::string FromReferencedSeriesSequence
 The currently supported source sequences for related volumes.
 
MLDIRECTDICOMIMPORTOUTPUTS_EXPORT const std::string FromReferencedImageSequence
 Take entries from ReferencedImageSequence.
 
MLDIRECTDICOMIMPORTOUTPUTS_EXPORT const std::string FromSourceImageSequence
 Take entries from SourceImageSequenceImageSequence.
 
MLDIRECTDICOMIMPORTOUTPUTS_EXPORT const std::string FromDerivationImageSequence
 Take entries from DerivationImageSequence -> SourceImageSequence.
 
MLDIRECTDICOMIMPORTOUTPUTS_EXPORT const std::string DefaultSequenceScanConfig
 Default scan configuration: takes only the first found sequence of the three ones.
 
MLDIRECTDICOMIMPORTOUTPUTS_EXPORT const std::vector< std::string > ValidSequenceScanConfigEntries
 All entry values allowed in a SequenceScanConfig string.
 

Function Documentation

◆ setUpVolumeIndexFields() [1/2]

MLDIRECTDICOMIMPORTOUTPUTS_EXPORT void ml::RelatedMultiFileVolumeTools::setUpVolumeIndexFields ( const std::set< size_t > & foundVolumeIndexes,
IntField & firstRelatedVolumeIndexFld,
StringField & relatedVolumeIndexesFld )

Sets the first index from foundVolumeIndexes as index in firstRelatedVolumeIndexFld or -1 if foundVolumeIndexes is empty; relatedVolumeIndexesFld will be set to a space separated list of all indexes from foundVolumeIndexes or to an empty string if foundVolumeIndexes is empty.

References setUpVolumeIndexFields().

Referenced by setUpVolumeIndexFields(), and setUpVolumeIndexFields().

◆ setUpVolumeIndexFields() [2/2]

MLDIRECTDICOMIMPORTOUTPUTS_EXPORT void ml::RelatedMultiFileVolumeTools::setUpVolumeIndexFields ( const std::set< size_t > & foundVolumeIndexes1,
const std::set< size_t > & foundVolumeIndexes2,
IntField & firstRelatedVolumeIndexFld,
StringField & relatedVolumeIndexesFld )

Generates an ordered sequence with all indexes from foundVolumeIndexes1 and appends all indexes from foundVolumeIndexes2 which still are not part of the sequence; the fields firstRelatedVolumeIndexFld and relatedVolumeIndexesFld then are set as described for setUpVolumeIndexFields with one set.

References setUpVolumeIndexFields().

◆ updateSourceImageReferences()

MLDIRECTDICOMIMPORTOUTPUTS_EXPORT void ml::RelatedMultiFileVolumeTools::updateSourceImageReferences ( DCMTree::Const_TreePtr dcmTree,
MultiFileVolumeList & volList,
std::set< size_t > & srcRefs,
std::set< size_t > & forRefs,
const std::string & sequenceScanConfig,
DicomMessageCollector & dcmMsgCollector )

Check dcmTree for ReferencedSOPInstanceUIDs according to sequenceScanConfig and for frame of reference uids tags.

Regarding these UIDs possible corresponding volume indexes in volList are inserted into srcRefs and/or forRefs.

Parameters
dcmTreeThe DICOM tree in which the references shall be searched.
volListThe MultiFileVolumeList into which the found indexes shall point.
srcRefsThe set of indexes to be extended with the newly found related volume indexes.
forRefsThe set of indexes to be extended with newly found indexes corresponding to frame of reference tags.
sequenceScanConfigThe configuration specifying the sequences in which ReferencedSOPInstaneUIDs shall be searched in dcmTree.
dcmMsgCollectorCollects error, info and issue messages. Possible errors and DCMtree exceptions are caught and logged in dcmMsgCollector.

References updateSourceImageReferences().

Referenced by updateSourceImageReferences().

Variable Documentation

◆ DefaultSequenceScanConfig

MLDIRECTDICOMIMPORTOUTPUTS_EXPORT const std::string ml::RelatedMultiFileVolumeTools::DefaultSequenceScanConfig
extern

Default scan configuration: takes only the first found sequence of the three ones.

◆ FromDerivationImageSequence

MLDIRECTDICOMIMPORTOUTPUTS_EXPORT const std::string ml::RelatedMultiFileVolumeTools::FromDerivationImageSequence
extern

Take entries from DerivationImageSequence -> SourceImageSequence.

◆ FromReferencedImageSequence

MLDIRECTDICOMIMPORTOUTPUTS_EXPORT const std::string ml::RelatedMultiFileVolumeTools::FromReferencedImageSequence
extern

Take entries from ReferencedImageSequence.

◆ FromReferencedSeriesSequence

MLDIRECTDICOMIMPORTOUTPUTS_EXPORT const std::string ml::RelatedMultiFileVolumeTools::FromReferencedSeriesSequence
extern

The currently supported source sequences for related volumes.

Take entries from ReferencedSeriesSequence -> ReferencedInstanceSequence -> ReferencedImageSequence.

◆ FromSourceImageSequence

MLDIRECTDICOMIMPORTOUTPUTS_EXPORT const std::string ml::RelatedMultiFileVolumeTools::FromSourceImageSequence
extern

Take entries from SourceImageSequenceImageSequence.

◆ ValidSequenceScanConfigEntries

MLDIRECTDICOMIMPORTOUTPUTS_EXPORT const std::vector<std::string> ml::RelatedMultiFileVolumeTools::ValidSequenceScanConfigEntries
extern

All entry values allowed in a SequenceScanConfig string.