MeVisLab Toolbox Reference
mlDICOMSOPClassAndModalityTools.h
Go to the documentation of this file.
1// Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2// **InsertLicense** code
3//----------------------------------------------------------------------------------
5
10//----------------------------------------------------------------------------------
11#pragma once
12
13#include "MLDICOMTagsSystem.h"
14
15#include <FMEThirdPartyWarningsDisable.h>
16#include <string>
17#include <tuple>
18#include <FMEThirdPartyWarningsRestore.h>
19
20#include <mlUtilsSystem.h>
21
22// DICOM Tree prototypes.
23#include <DCMTree_Lib.h>
24
26
27//----------------------------------------------------------------------------------
29//----------------------------------------------------------------------------------
30namespace DICOMTagTools {
31
38
42
46 const std::string &modality) ML_RETURN_VALUE_SHOULD_BE_USED;
47
53 const std::string &sopClassUID,
55
59MLDICOMTags_EXPORT bool hasNMSOPClassUID(DCMTree::Const_TreePtr dcmTree) ML_RETURN_VALUE_SHOULD_BE_USED;
60
64MLDICOMTags_EXPORT bool hasStandardMRSpectroscopyClassUID(DCMTree::Const_TreePtr dcmTree) ML_RETURN_VALUE_SHOULD_BE_USED;
65
72MLDICOMTags_EXPORT bool hasRetiredPETCurveStorageSOPClassUID(DCMTree::Const_TreePtr dcmTree) ML_RETURN_VALUE_SHOULD_BE_USED;
73
75MLDICOMTags_EXPORT bool hasSCSOPClassUID(DCMTree::Const_TreePtr dcmTree) ML_RETURN_VALUE_SHOULD_BE_USED;
76
78MLDICOMTags_EXPORT bool hasParametricMapSOPClassUID(DCMTree::Const_TreePtr dcmTree) ML_RETURN_VALUE_SHOULD_BE_USED;
79
88MLDICOMTags_EXPORT bool hasSOPClassUIDOfModality(DCMTree::Const_TreePtr dcmTree,
89 const std::string &modality) ML_RETURN_VALUE_SHOULD_BE_USED;
90
92MLDICOMTags_EXPORT bool isKnownRetiredModality(const std::string &modality) ML_RETURN_VALUE_SHOULD_BE_USED;
93
96MLDICOMTags_EXPORT bool isKnownModality(const std::string &modality, bool includeRetired) ML_RETURN_VALUE_SHOULD_BE_USED;
97
101MLDICOMTags_EXPORT std::string getModalityForSOPClassUID(const std::string &sopClassUID) ML_RETURN_VALUE_SHOULD_BE_USED;
102
113MLDICOMTags_EXPORT bool isMultiFrameSOPClassUID(const std::string &SOPClassUID) ML_RETURN_VALUE_SHOULD_BE_USED;
114
117
119MLDICOMTags_EXPORT bool hasSharedOrPerFrameFunctionalGroupSequences(DCMTree::Const_TreePtr dcmTree) ML_RETURN_VALUE_SHOULD_BE_USED;
120
125// Examples such as ProbandT1.dcm have NumberOfFrames tags but no FrameincrementPointer.
126MLDICOMTags_EXPORT bool hasMultiFrameModule(DCMTree::Const_TreePtr dcmTree) ML_RETURN_VALUE_SHOULD_BE_USED;
127
131MLDICOMTags_EXPORT std::string translateToSingleFrameSOPClassUID(const std::string &enhancedSOPClassUID) ML_RETURN_VALUE_SHOULD_BE_USED;
132
136MLDICOMTags_EXPORT void setUpSingleFrameImageStorageSOPClassUIDDerivedFromEnhancedOne(DCMTree::Const_TreePtr dcmMFTree,
137 DCMTree::TreePtr singleFrame);
138
140MLDICOMTags_EXPORT std::pair<bool,bool> isClassicOrEnhancedMultiFrameSOPClass(const std::string &sopClassUID);
141
142};
143
Project global and OS specific declarations.
#define MLDICOMTags_EXPORT
If included by external modules, exported symbols are declared as import symbols.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
class to dump a DCMTree dicom message into a human readable file this class could be used as a starte...
boost::shared_ptr< const Tree > Const_TreePtr
Definition DCMTree_Lib.h:73
MLDICOMTags_EXPORT bool hasTrueModality(DCMTree::Const_TreePtr treePtr, const std::string &modality) ML_RETURN_VALUE_SHOULD_BE_USED
Returns true if the value of the modality tag is of the given modality, the tree is not a secondary c...
MLDICOMTags_EXPORT std::string getModalityTagValue(DCMTree::Const_TreePtr treePtr) ML_RETURN_VALUE_SHOULD_BE_USED
Returns a string with value of the modality tag if it can be determined from the passed tree or an em...
MLDICOMTags_EXPORT std::string getSOPClassUIDTagValue(DCMTree::Const_TreePtr treePtr) ML_RETURN_VALUE_SHOULD_BE_USED
Returns a string with value of the SOPClassUID tag if it can be determined from the passed tree or an...
MLDICOMTags_EXPORT bool hasSOPClassUID(DCMTree::Const_TreePtr dcmTree, const std::string &sopClassUID, bool doDeepSearch=false) ML_RETURN_VALUE_SHOULD_BE_USED
Returns true if dcmTree is valid and has the SOPClassUID tag with the given sopClassUID value.
STL namespace.