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
20
21namespace 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
73 const std::string& tagIdString,
74 const std::string& sequenceEntriesString,
76 bool alsoGetNULLTrees=false);
77
84 const std::vector<MLuint32>& ztuTriples,
86
97 const std::string& zSlicesEntriesList,
98 const std::string& tSlicesEntriesList,
99 const std::string& uSlicesEntriesList,
101
102}
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
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
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
boost::shared_ptr< StructuredMF > StructuredMFPtr
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:72
MLDICOMTags_EXPORT DCMTree::TreePtr getSMFTreeFrameTreeAtZTU(DCMTree::Const_StructuredMFPtr smfTree, const ZTUIndex &ztu)
Returns a deep-copy of DCMTree at frame position (z,t,u) from constant smfTree if it exists or nullpt...
MLDICOMTags_EXPORT void getSMFTreeZTUExtent(const DCMTree::StructuredMFPtr smfTree, ZTUIndex &ztu)
Get extent of the MeVis Structured Multi Frame set of the smfTree in ztu.
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 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 > 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...
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 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...