MeVisLab Toolbox Reference
mlSMFTreeTools.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code
3 //----------------------------------------------------------------------------------
5 
10 //----------------------------------------------------------------------------------
11 
12 #pragma once
13 
14 #include "MLDICOMTagsSystem.h"
15 #include <mlUtilsSystem.h>
16 #include "mlZTUIndex.h"
17 #include <DCMTree_Lib.h>
18 
19 ML_START_NAMESPACE
20 
21 namespace DICOMTagTools {
22 
26  ZTUIndex& ztu);
27 
31  ZTUIndex& ztu);
32 
36  ZTUIndex& ztu);
37 
41  ZTUIndex& ztu);
42 
45 
48  std::vector<DCMTree::Const_TreePtr> &frameSet);
49 
54  const ZTUIndex& ztu);
55 
60  const ZTUIndex& ztu);
61 
65  const ZTUIndex& ztu);
66 
72 MLDICOMTags_EXPORT std::vector<DCMTree::TreePtr> getIndexedNormalSequenceSubTrees(const DCMTree::TreePtr& parentTree,
73  const std::string& tagIdString,
74  const std::string& sequenceEntriesString,
75  DICOMTagTools::ZTUVector* ztuIndexes = nullptr,
76  bool alsoGetNULLTrees=false);
77 
83 MLDICOMTags_EXPORT std::vector<DCMTree::TreePtr> getSMFSubTreeFramesAtZTUTriplePositions(const DCMTree::TreePtr& parentTree,
84  const std::vector<MLuint32>& ztuTriples,
85  DICOMTagTools::ZTUVector* ztuIndexes = nullptr);
86 
96 MLDICOMTags_EXPORT std::vector<DCMTree::TreePtr> getSMFSubTreeZTUFrameSlices(const DCMTree::TreePtr& parentTree,
97  const std::string& zSlicesEntriesList,
98  const std::string& tSlicesEntriesList,
99  const std::string& uSlicesEntriesList,
100  DICOMTagTools::ZTUVector* ztuIndexes = nullptr);
101 
102 }
103 ML_END_NAMESPACE
Project global and OS specific declarations.
#define MLDICOMTags_EXPORT
If included by external modules, exported symbols are declared as import symbols.
Class managing a multi-frame Z, T, and U-dimension plus a string value.
Definition: mlZTUIndex.h:26
Header file of class ZTUIndex managing a multi-frame Z, T, and U-dimension plus a string value.
boost::shared_ptr< const StructuredMF > Const_StructuredMFPtr
Definition: DCMTree_Lib.h:170
boost::shared_ptr< StructuredMF > StructuredMFPtr
Definition: DCMTree_Lib.h:168
boost::shared_ptr< const Tree > Const_TreePtr
Definition: DCMTree_Lib.h:73
boost::shared_ptr< Tree > TreePtr
shared pointer to a DCMTree::Tree
Definition: DCMTree_Lib.h:70
MLDICOMTags_EXPORT DCMTree::Const_StructuredMFPtr convertDCMToSMFTree(DCMTree::Const_TreePtr dcmTree)
Convert dcmTree to the returned StructuredSMFTree if possible or throws and DCMtree::Exception.
MLDICOMTags_EXPORT std::vector< DCMTree::TreePtr > getSMFSubTreeZTUFrameSlices(const DCMTree::TreePtr &parentTree, const std::string &zSlicesEntriesList, const std::string &tSlicesEntriesList, const std::string &uSlicesEntriesList, DICOMTagTools::ZTUVector *ztuIndexes=nullptr)
Returns a vector of DCMTree::TreePtrs of all MeVis SMF subtrees which are described by the combinatio...
MLDICOMTags_EXPORT void extractAllSMFFramesAsDeepCopies(DCMTree::Const_StructuredMFPtr inputSMFTree, std::vector< DCMTree::Const_TreePtr > &frameSet)
Retrieves all frame trees of the input SMFTree as deep-copies and returns their pointers in frameSet.
MLDICOMTags_EXPORT std::vector< DCMTree::TreePtr > getSMFSubTreeFramesAtZTUTriplePositions(const DCMTree::TreePtr &parentTree, const std::vector< MLuint32 > &ztuTriples, DICOMTagTools::ZTUVector *ztuIndexes=nullptr)
Builds ztuTriples.size()/3 triples from the indexes in the ztuTriples and returns a vector of all DCM...
MLDICOMTags_EXPORT DCMTree::TreePtr getSMFTreeFrameTreeAtZTU(DCMTree::TreePtr dcmTree, const ZTUIndex &ztu)
Returns the DCMTree at frame position (z,t,u) from non-constant dcmTree if it exists or nullptr if no...
std::vector< ZTUIndex > ZTUVector
A std::vector typedef of ZTUIndexes to describe indexes of handles in the multi-frame Z,...
Definition: mlZTUIndex.h:70
MLDICOMTags_EXPORT std::vector< DCMTree::TreePtr > getIndexedNormalSequenceSubTrees(const DCMTree::TreePtr &parentTree, const std::string &tagIdString, const std::string &sequenceEntriesString, DICOMTagTools::ZTUVector *ztuIndexes=nullptr, bool alsoGetNULLTrees=false)
Returns a vector of all DCMTree::TreePtrs indexed by sequenceEntriesString and taken from the sequenc...
MLDICOMTags_EXPORT void getSMFTreeZTUExtent(DCMTree::Const_TreePtr dcmTree, ZTUIndex &ztu)
Get extent of the MeVis Structured Multi Frame set of the constant dcmTree in ztu.