MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
mlGraphAnalyser.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2007, MeVis Medical Solutions AG
4**
5** The user may use this file in accordance with the license agreement provided with
6** the Software or, alternatively, in accordance with the terms contained in a
7** written agreement between the user and MeVis Medical Solutions AG.
8**
9** For further information use the contact form at https://www.mevislab.de/contact
10**
11**************************************************************************************/
12
13#ifndef ML_GRAPH_ANALYSER_H
14#define ML_GRAPH_ANALYSER_H
15
16
18
19// Include dll-specific settings.
20#include "mlVesselGraphSystem.h"
21#include "VesselGraphTypes.h"
22
23// Include vessel graph class.
25#include <map>
26#include <memory.h>
28#include "mlGraphComponents.h"
29
30#ifndef VESSELGRAPH_USE_MPIF
31#include "AssocGraph.h"
32#endif
33
34
35// Be sure that all your modules are part of the ml. So collisions
36// with names in system files or other libraries are minimized.
38
39// ------------------------------------------------------------------
42// ------------------------------------------------------------------
63
64typedef std::map<NData, void*> DataMap;
66
67//----------------------------------------------------------
70//----------------------------------------------------------
73typedef enum {
74 PROC_NONE = 0x000,
75 PROC_LENGTH = 0x001,
76 PROC_VOLUME = 0x002,
79 PROC_SCL = 0x010,
81 PROC_ROOT = 0x100,
83 PROC_ST_POS = 0x204,
84 PROC_ST_NODE_SUM = 0x208
85#ifndef VESSELGRAPH_USE_MPIF
86 ,
87 PROC_CLUSTER = 0x400
88#endif
90
91
93
94// ------------------------------------------------------------------
97// ------------------------------------------------------------------
104{
105 int _nIdx;
106 float _fValue;
107
108
112 CIdxFloat(int nIdx = 0, float fValue = 0.0)
113 : _nIdx(nIdx)
114 , _fValue(fValue) {};
116 {
117 if (this != &oIF) {
118 this->_nIdx = oIF._nIdx;
119 this->_fValue = oIF._fValue;
120 }
121 return *this;
122 }
123
124
126 inline bool operator>(const CIdxFloat& oIF) const
127 {
128 if (_fValue != oIF._fValue) {
129 return _fValue > oIF._fValue;
130 }
131 else {
132 return _nIdx > oIF._nIdx;
133 }
134 }
135 inline bool operator<(const CIdxFloat& oIF) const
136 {
137 if (_fValue != oIF._fValue) {
138 return _fValue < oIF._fValue;
139 }
140 else {
141 return _nIdx < oIF._nIdx;
142 }
143 }
144 inline bool operator==(const CIdxFloat& oIF) const
145 {
146 return ((_nIdx == oIF._nIdx) && (_fValue == oIF._fValue));
147 }
149};
150
155{
156 int _n1;
157 int _n2;
159 : _n1(oII._n1)
160 , _n2(oII._n2) {};
162 {
163 if (this != &oII) {
164 this->_n1 = oII._n1;
165 this->_n2 = oII._n2;
166 }
167 return *this;
168 }
170 inline bool operator<(const CIdxIdx& oII) const
171 {
172 if (_n1 != oII._n1) {
173 return _n1 < oII._n1;
174 }
175 else {
176 return _n2 < oII._n2;
177 }
178 }
179 inline bool operator==(const CIdxIdx& oII) const
180 {
181 return ((_n1 == oII._n1) && (_n2 == oII._n2));
182 }
184};
186
187
188// ------------------------------------------------------------------
190// ------------------------------------------------------------------
196{
197public:
198 //--------------------------------------------------------
201 //--------------------------------------------------------
205 : _pGraph(pGraph) {};
207
208 //----------------------------------------------------------
211 //----------------------------------------------------------
215
219
225 );
226
230
233
236
242 );
243
246 bool bIgnoreOrientation = false
248 );
249
254
257 void searchMaxSubTrees(std::vector<VesselEdge*>::iterator iBegin, std::vector<VesselEdge*>::iterator iEnd,
258 int nNum,
259 std::vector<VesselEdge*>* pvMaxEdges,
260 float* pfActValue,
261 float* pfActSum
262 );
263
266 inline void searchMaxSubTrees(std::vector<VesselEdge*> vStartEdges,
267 unsigned int nNum,
268 std::vector<VesselEdge*>* pvMaxEdges,
269 float* pfActValue,
270 float* pfActSum
271 )
272 {
273 searchMaxSubTrees(vStartEdges.begin(), vStartEdges.end(), static_cast<int>(nNum), pvMaxEdges, pfActValue, pfActSum);
274 }
275
278 inline void searchMaxSubTrees(std::vector<VesselEdge*> vStartEdges,
279 int nPos,
280 unsigned int nNum,
281 std::vector<VesselEdge*>* pvMaxEdges,
282 float* pfActValue,
283 float* pfActSum
284 )
285 {
286 searchMaxSubTrees(vStartEdges.begin() + nPos, vStartEdges.begin() + nPos + 1, static_cast<int>(nNum), pvMaxEdges,
288 }
289
290 // Starting at node pRoot, search for two subtrees (originating from a common node) with barycenters at a large
291 // distance in separationDirection and large volumes. Push_back() them to vClassifiedEdges ordered by descending
292 // position in separationDirection. If (pRoot==NULL) all nodes in the graph are considered.
294 std::vector<VesselEdge*>& vClassifiedEdges);
295
300 float fMinorLimit,
301 std::vector<VesselEdge*>* pvEdges,
302 bool bClear = true
303 );
304
311 float fMinorLimitStart,
312 float fMinorLimitStep,
314 std::vector<VesselEdge*>* pvEdges,
315 bool bClear = true
316 );
318
319
320 //----------------------------------------------------------
323 //----------------------------------------------------------
327
329 const VesselNode* getParent(const VesselNode* pN1, const VesselNode* pN2) const;
330 const VesselNode* getParent(const VesselEdge* pE1, const VesselEdge* pE2) const;
334
335private:
336 //----------------------------------------------------------
339 //----------------------------------------------------------
341 Graph* _pGraph;
342
344 DataMap _MData;
346
347
348#ifndef VESSELGRAPH_USE_MPIF
349public:
351 inline void sumupST_DrainVolume(bool bIgnoreOrientation = false
353 )
354 {
355 sumupST_Value(&VesselNode::getDrainVolume, &VesselNode::setDrainVolume, bIgnoreOrientation);
356 }
357
358
365 bool calcDistanceMatrix(MatrixTemplate<double>& dm, std::vector<int>& vId, int nMaxNodes);
366
367
386 bool calcNodeClassifikator(CDoubleArray* pArAssoc, std::vector<int>* pvId, int nMaxNodes);
387
388
392 bool calcNodeBaseFromPosition(const Vector3& vPosition, const std::vector<int>& vId,
393 std::vector<CIdxFloat>* pvResult);
394
398 bool calcPositionFromNodeBase(std::vector<CIdxFloat> vBase, Vector3* pvResult);
399
401 double calcSpannedVolume(const std::vector<int>& vId);
402
406
412 void scanSkeletonLabelMinMax(float* min, float* max);
413
415 void collectLeafs(VesselNode* pRoot, std::vector<VesselNode*>& pLeafs);
416
417private:
418 //----------------------------------------------------------
421 //----------------------------------------------------------
425 void calcRootPath(int nParentStart, int nParentEnd, int* pFreeIdx, std::vector<PathInfo>::iterator iPathBase,
426 std::vector<PathInfo>::iterator iPathEnd);
428
429#endif
430};
431
432
433// ------------------------------------------------------------------
435// ------------------------------------------------------------------
441{
442public:
443 //--------------------------------------------------------
446 //--------------------------------------------------------
449 explicit EdgeAnalyser(long NMode, DataMap* pData = nullptr);
451
452
453 //--------------------------------------------------------
456 //--------------------------------------------------------
457 // function \c operator() provide singular outer access point
459 {
460 (this->*_actMeasure)(pEdge);
461 }
463
464
465private:
466 //--------------------------------------------------------
469 //--------------------------------------------------------
471 void measureNothing(VesselEdge* /*pEdge*/)
472 {}
473
476 void measureLength(VesselEdge* pEdge);
477
480 void measureVolume(VesselEdge* pEdge);
481
483 void measurePosition(VesselEdge* pEdge);
484
486 void averageMinDistance(VesselEdge* pEdge);
487
490 void measureST_Volume(VesselEdge* pEdge);
491
494 void measureST_Barycenter(VesselEdge* pEdge);
495
497 void measure_avSkeletonArea(VesselEdge* pEdge);
498
499
502 void sumupST_NodeValue(VesselEdge* pEdge);
503
505
506 //----------------------------------------------------------
509 //----------------------------------------------------------
511 void (EdgeAnalyser::*_actMeasure)(VesselEdge* pEdge);
512
514 float _fVoxVolume;
516 DataMap* _pData;
518 long _NMode;
520};
521
522
533
534// ------------------------------------------------------------------
536// ------------------------------------------------------------------
541{
542public:
545 explicit compareEdges(CMP_FEATURE NFeature, Vector3 planeNormal = Vector3(0))
546 {
547 _planeNormal = planeNormal;
548 switch (NFeature) {
549 case (CMP_LENGTH):
550 _actComperator = &compareEdges::compareLength;
551 break;
552 case (CMP_VOLUME):
553 _actComperator = &compareEdges::compareVolume;
554 break;
555 case (CMP_STVOLUME):
556 _actComperator = &compareEdges::compareSTVolume;
557 break;
558 case (CMP_STCENTER_X):
559 _actComperator = &compareEdges::compareSTCenterX;
560 break;
561 case (CMP_STCENTER_Y):
562 _actComperator = &compareEdges::compareSTCenterY;
563 break;
564 case (CMP_STCENTER_Z):
565 _actComperator = &compareEdges::compareSTCenterZ;
566 break;
567 case (CMP_STCENTER_PLANE):
568 _actComperator = &compareEdges::compareSTCenterPlane;
569 break;
570 case (CMP_LABEL):
571 default:
572 _actComperator = &compareEdges::compareLabel;
573 break;
574 }
575 }
576
577 int operator()(const VesselEdge* pE1, const VesselEdge* pE2) const
578 {
579 return (this->*_actComperator)(pE1, pE2);
580 }
581
582private:
585 Vector3 _planeNormal;
586
587 int compareLabel(const VesselEdge* pE1, const VesselEdge* pE2) const
588 {
589 return pE1->getLabel() > pE2->getLabel();
590 }
591 int compareLength(const VesselEdge* pE1, const VesselEdge* pE2) const
592 {
593 return pE1->getLength() > pE2->getLength();
594 }
595 int compareVolume(const VesselEdge* pE1, const VesselEdge* pE2) const
596 {
597 return pE1->getVolume() > pE2->getVolume();
598 }
599 int compareSTVolume(const VesselEdge* pE1, const VesselEdge* pE2) const
600 {
601 return pE1->getSTVolume() > pE2->getSTVolume();
602 }
603 int compareSTCenterX(const VesselEdge* pE1, const VesselEdge* pE2) const
604 {
605 return (pE1->getSTBarycenter())[0] > (pE2->getSTBarycenter())[0];
606 }
607 int compareSTCenterY(const VesselEdge* pE1, const VesselEdge* pE2) const
608 {
609 return (pE1->getSTBarycenter())[1] > (pE2->getSTBarycenter())[1];
610 }
611 int compareSTCenterZ(const VesselEdge* pE1, const VesselEdge* pE2) const
612 {
613 return (pE1->getSTBarycenter())[2] > (pE2->getSTBarycenter())[2];
614 }
615 int compareSTCenterPlane(const VesselEdge* pE1, const VesselEdge* pE2) const
616 {
617 return (pE1->getSTBarycenter() - pE2->getSTBarycenter()).dot(_planeNormal) > 0;
618 }
619};
620
621
622// ------------------------------------------------------------------
624// ------------------------------------------------------------------
630{
631public:
632 //--------------------------------------------------------
635 //--------------------------------------------------------
638 explicit NodeAnalyser(long NMode, DataMap* pData = nullptr)
639 : _actMeasure(&NodeAnalyser::doNothing)
640 , _pData(pData)
641 {
642 switch (NMode) {
643 case PROC_ROOT:
644 if (_pData != nullptr) {
645 if ((*pData)[OUTDATA_ROOT] != nullptr) {
646 *(reinterpret_cast<long*>((*pData)[OUTDATA_ROOT])) = 0;
647 _fDist = 0.0;
648 _actMeasure = &NodeAnalyser::suggestRoot;
649 }
650 }
651 else {
652 _actMeasure = &NodeAnalyser::doNothing;
653 }
654 break;
655#ifndef VESSELGRAPH_USE_MPIF
656 case PROC_CLUSTER:
657 if (_pData != nullptr) {
658 if ((*pData)[OUTDATA_CLUSTER] != nullptr) {
659 _actMeasure = &NodeAnalyser::setClusterLabel;
660 }
661 }
662 else {
663 _actMeasure = &NodeAnalyser::doNothing;
664 }
665 break;
666#endif
667 default:
668 _actMeasure = &NodeAnalyser::doNothing;
669 }
670 }
672
673
674 //--------------------------------------------------------
677 //--------------------------------------------------------
678 // function \c operator() provide singular outer access point
680 {
681 (this->*_actMeasure)(pNode);
682 }
684
685
686private:
687 //--------------------------------------------------------
690 //--------------------------------------------------------
692 void doNothing(VesselNode* /*pNode*/)
693 {}
694
696 void suggestRoot(VesselNode* pNode);
697
698#ifndef VESSELGRAPH_USE_MPIF
700 void setClusterLabel(VesselNode* pNode);
701#endif
703
704 //----------------------------------------------------------
707 //----------------------------------------------------------
709 void (NodeAnalyser::*_actMeasure)(VesselNode* pNode);
710
712 DataMap* _pData;
713
714 float _fDist;
716};
717
718// ------------------------------------------------------------------
720// ------------------------------------------------------------------
728{
729
731 class Process
732 {
734 typedef void (measureSkeletonAgent::*ProcessFkt)(const Skeleton& oSkeleton, Process* pProcess);
735
736 public:
737 ProcessFkt oProcess = &measureSkeletonAgent::doNothing;
738 void* pResult = nullptr;
739 };
740
742 friend class Process;
743
745 typedef std::map<NProcessMode, Process>::iterator IProcess;
746
747public:
748 //--------------------------------------------------------
751 //--------------------------------------------------------
755 : _fLastLength(0.0)
756 , _pScale(nullptr)
757 , _pData(pData)
758 {
759 _MProcess.erase(_MProcess.begin(), _MProcess.end());
760
761 if (_pData != nullptr) {
762 if (nMode & PROC_LENGTH) {
763 Process oProcess;
764 oProcess.pResult = (*_pData)[OUTDATA_LENGTH];
765 if (nMode & PROC_SCL) {
766 _pScale = static_cast<Vector3*>((*_pData)[DATA_SCL]);
767 oProcess.oProcess = &measureSkeletonAgent::ProcessL1Scale;
768 }
769 else {
770 oProcess.oProcess = &measureSkeletonAgent::ProcessL1;
771 }
772 _MProcess[PROC_LENGTH] = oProcess;
773 }
774
775 if (nMode & PROC_VOLUME) {
776 Process oProcess;
777 oProcess.pResult = (*_pData)[OUTDATA_VOLUME];
778 oProcess.oProcess = &measureSkeletonAgent::ProcessV1;
779 _MProcess[PROC_VOLUME] = oProcess;
780 }
781
782 if (nMode & PROC_WEIGHTED_POS) {
783 Process oProcess;
784 oProcess.pResult = (*_pData)[OUTDATA_POS];
785 oProcess.oProcess = &measureSkeletonAgent::ProcessP1;
786 _MProcess[PROC_WEIGHTED_POS] = oProcess;
787 }
788
789 if (nMode & PROC_AV_MIN_DIST) {
790 Process oProcess;
791 oProcess.pResult = (*_pData)[OUTDATA_AV_MIN_DIST];
792 oProcess.oProcess = &measureSkeletonAgent::ProcessD1;
793 _MProcess[PROC_AV_MIN_DIST] = oProcess;
794 }
795 }
796 }
798
799
800 //--------------------------------------------------------
803 //--------------------------------------------------------
805 inline void operator()(const Skeleton& oSkeleton)
806 {
807 for (IProcess iProcess = _MProcess.begin(); iProcess != _MProcess.end(); ++iProcess) {
808 (this->*((iProcess->second).oProcess))(oSkeleton, &(iProcess->second));
809 }
810 }
812 {
813 for (IProcess iProcess = _MProcess.begin(); iProcess != _MProcess.end(); ++iProcess) {
814 (this->*((iProcess->second).oProcess))(*oSkeleton, &(iProcess->second));
815 }
816 }
818
819
820private:
821 //--------------------------------------------------------
824 //--------------------------------------------------------
826 void doNothing(const Skeleton& /*oSkeleton*/, Process* /*pProcess*/)
827 {}
828
831 void ProcessL1(const Skeleton& oSkeleton, Process* pProcess);
832 void ProcessL1Scale(const Skeleton& oSkeleton, Process* pProcess);
834 void ProcessL2(const Skeleton& oSkeleton, Process* pProcess);
835 void ProcessL2Scale(const Skeleton& oSkeleton, Process* pProcess);
837 void ProcessL3(const Skeleton& oSkeleton, Process* pProcess);
838 void ProcessL3Scale(const Skeleton& oSkeleton, Process* pProcess);
839
841 void ProcessV1(const Skeleton& oSkeleton, Process* pProcess);
842
844 void ProcessP1(const Skeleton& oSkeleton, Process* pProcess);
845
847 void ProcessD1(const Skeleton& oSkeleton, Process* pProcess);
848
849
851
852 //----------------------------------------------------------
855 //----------------------------------------------------------
857 std::map<NProcessMode, Process> _MProcess;
858
859
861 float _fLastLength;
862
864 std::list<Vector3> _LPoints;
866 std::list<Vector3>::iterator IBack;
868 std::list<Vector3>::iterator IMiddle;
870 std::list<Vector3>::iterator IFront;
871
872 // interpolated Skeleton position
873 Vector3 _vMean;
875 Vector3* _pScale;
876
878 DataMap* _pData;
880};
881
883
884#endif // __GRAPHANALYSER_H
— Class EdgeAnalyser
EdgeAnalyser(long NMode, DataMap *pData=nullptr)
constructor: connect operator() to the requested functionality
void operator()(VesselEdge *pEdge)
— Class GraphAnalyser
VesselNode * suggestRoot(float fSignificanceLevel=0.7f, int nPreferedDirection=0)
Search for root-node: look for leaf with thick edge seated remote from the barycenter of the Graph.
VesselNode * getParent(VesselEdge *pE1, VesselEdge *pE2)
void tansferLabelsInverse(void)
transfer skeleton labels to vessel edge label (take label of most frequent skeleton)
void searchSubTreeSeparation(VesselNode *pRoot, const Vector3 &separationDirection, std::vector< VesselEdge * > &vClassifiedEdges)
Vector3 measureBarycenter()
Get barycenter position of all the Graph.
void measureSkeletonArea(int nAvLength=5)
measure floating average of SkeletonArea and set area property
void measureST_Volume(bool bIgnoreOrientation=false)
Get the euclidean volume of all graph edges connected with given root, nodes cumulate them according ...
void sumupST_Value(VesselNode::NodeGetFkt getFkt, VesselNode::NodeSetFkt setFkt, bool bIgnoreOrientation=false)
bool calcPositionFromNodeBase(std::vector< CIdxFloat > vBase, Vector3 *pvResult)
Calculate spatial vector position form relative node coordinates.
bool calcDistanceMatrix(MatrixTemplate< double > &dm, std::vector< int > &vId, int nMaxNodes)
Calculate Distance Matrix for rooted Graph, taking hierarchy into account: dm(n1, n2) := minimal dist...
void searchMaxSubTrees(std::vector< VesselEdge * > vStartEdges, unsigned int nNum, std::vector< VesselEdge * > *pvMaxEdges, float *pfActValue, float *pfActSum)
calculate set of edges representing nNum subtrees maximizing selected feature stored in label propert...
void searchMaxSubTrees(std::vector< VesselEdge * >::iterator iBegin, std::vector< VesselEdge * >::iterator iEnd, int nNum, std::vector< VesselEdge * > *pvMaxEdges, float *pfActValue, float *pfActSum)
calculate set of edges representing nNum subtrees maximizing selected feature stored in label propert...
void collectLeafs(VesselNode *pRoot, std::vector< VesselNode * > &pLeafs)
Collect all leafs which are children of node pRoot and append them to pLeafs.
double calcSpannedVolume(const std::vector< int > &vId)
Calculate Volume of minimal cube including all supplied nodes.
void measureVolume()
Get the euclidean volume of all graph edges and set edge 'Volume' property in the Graph.
void sumupST_DrainVolume(bool bIgnoreOrientation=false)
cumulate DrainVolumes given at the leafs
void searchMaxSubTrees(std::vector< VesselEdge * > vStartEdges, int nPos, unsigned int nNum, std::vector< VesselEdge * > *pvMaxEdges, float *pfActValue, float *pfActSum)
calculate set of edges representing nNum subtrees maximizing selected feature stored in label propert...
float measureAvMinDistance()
Get the average minimal distance over all skeletons of an edge and set edge 'averageMinDistance' prop...
short sampleConnectedCluster()
identify connected subgraph return value is number of identified cluster
void tansferLabels(Skeleton::LABELTYPE NType, float fThresh=0.1f)
transfer Vessel-Edge labels to Skeleton
GraphAnalyser(Graph *pGraph)
constructor: provide pointer pGraph for easy access to Graph object
void measureLength()
Get the euclidean length of all graph edges and set edge 'Length' property in the Graph.
bool calcNodeBaseFromPosition(const Vector3 &vPosition, const std::vector< int > &vId, std::vector< CIdxFloat > *pvResult)
Calculate representation of spatial position in node coordinates.
void measureST_Barycenter(bool bIgnoreOrientation=false)
Get the euclidean volume of all graph edges connected with given root, nodes cumulate them according ...
void searchST_MajorBifurcation(VesselEdge *pStartEdge, float fMinorLimitStart, float fMinorLimitStep, int nMinorLimitNumber, std::vector< VesselEdge * > *pvEdges, bool bClear=true)
search for first major bifurcation following main edge starting with pStartEdge, use label property t...
const VesselNode * getParent(const VesselEdge *pE1, const VesselEdge *pE2) const
void scanSkeletonLabelMinMax(float *min, float *max)
evaluate min/max value of skeleton labels
void measureMaxPathValue(VesselNode *pRootNode, VesselEdge::EdgeGetFkt edgeGetFkt, VesselNode::NodeGetFkt nodeGetFkt, VesselNode::NodeSetFkt nodeSetFkt)
For each node calculate the maximum sum of edge values in a single path below this node.
void searchST_MajorBifurcation(VesselEdge *pStartEdge, float fMinorLimit, std::vector< VesselEdge * > *pvEdges, bool bClear=true)
search for first major bifurcation following main edge starting with pStartEdge, use label property t...
const VesselNode * getParent(const VesselNode *pN1, const VesselNode *pN2) const
get pointer to common parent if exists or NULL
VesselNode * getParent(VesselNode *pN1, VesselNode *pN2)
bool calcNodeClassifikator(CDoubleArray *pArAssoc, std::vector< int > *pvId, int nMaxNodes)
stack Node classificators in (*pArAssoc) (n1,n1): classificators based on single Node n1 respect to g...
Defines the basic Graph class which holds sets of nodes, edges and roots to model tubular structures ...
Definition mlGraph.h:64
— Class NodeAnalyser
NodeAnalyser(long NMode, DataMap *pData=nullptr)
constructor: connect operator() to the requested functionality
void operator()(VesselNode *pNode)
Skeleton objects represent centerline voxels stored in a VesselEdge object.
Definition mlSkeleton.h:35
Class VesselEdge.
double(VesselEdge::* EdgeGetFkt)(void) const
object bound function pointer: position of function relative to (individual) object base
VesselNode is derived from GraphNode, hence it can be stored as node item in a class Graph object.
void(VesselNode::* NodeSetFkt)(const MLdouble &)
function to set double parameter value
MLdouble(VesselNode::* NodeGetFkt)() const
object bound function pointer: position of function relative to (individual) object base
— Class compareEdges
int operator()(const VesselEdge *pE1, const VesselEdge *pE2) const
compareEdges(CMP_FEATURE NFeature, Vector3 planeNormal=Vector3(0))
constructor: connect operator() to the requested functionality
— Class measureSkeletonAgent
friend class Process
allow functor access to all internal stuff
void operator()(const Skeleton &oSkeleton)
add Skeleton successive
void operator()(Skeleton *oSkeleton)
measureSkeletonAgent(int nMode, DataMap *pData=nullptr)
constructor: connect operator() to start functionality and initialize parameter for accumulation of p...
T dot(const FloatingPointVector< T, size, DataContainer > &buffer) const
Returns the dot product, i.e., sum of all components multiplied with corresponding components of buff...
std::map< NData, void * > DataMap
CMP_FEATURE
@ CMP_LENGTH
@ CMP_STCENTER_Z
@ CMP_STCENTER_PLANE
@ CMP_STCENTER_Y
@ CMP_STVOLUME
@ CMP_VOLUME
@ CMP_LABEL
@ CMP_STCENTER_X
NProcessMode
Flags for processing instructions and control of used functionalty.
@ PROC_ST_POS
@ PROC_NONE
@ PROC_ST_NODE_SUM
@ PROC_VOLUME
@ PROC_SKELETON_AREA
@ PROC_SCL
@ PROC_WEIGHTED_POS
@ PROC_LENGTH
@ PROC_ROOT
@ PROC_ST_VOLUME
@ PROC_CLUSTER
@ PROC_AV_MIN_DIST
NData
data structure for passing informations down the processing pipe
@ DATA_SET_FKT
@ DATA_GET_FKT
@ OUTDATA_POS
@ DATA_NODE
@ DATA_DISTANCE
@ OUTDATA_LENGTH
@ OUTDATA_VOLUME
@ OUTDATA_GLOBAL_MIN_DIST
@ DATA_FLAG
@ DATA_BARYCENTER
@ OUTDATA_AV_MIN_DIST
@ DATA_NO
@ OUTDATA_ROOT
@ DATA_AV_LEN
@ DATA_SCL
@ OUTDATA_CLUSTER
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
#define VESSELGRAPH_END_NAMESPACE
#define VESSELGRAPH_EXPORT
Definiert systemspezifische Macros, die f"ur diese DLL gelten sollen.
#define VESSELGRAPH_BEGIN_NAMESPACE
Tvec3< MLdouble > Vector3
A vector with three components of type double.
Definition mlVector3.h:274
CIdxFloat(const CIdxFloat &oIF)
CIdxFloat(int nIdx=0, float fValue=0.0)
bool operator<(const CIdxFloat &oIF) const
bool operator>(const CIdxFloat &oIF) const
supply comparison operator to induce an order for assistance of non-abiguous sequences
CIdxFloat & operator=(const CIdxFloat &oIF)
bool operator==(const CIdxFloat &oIF) const
bool operator<(const CIdxIdx &oII) const
supply comparison operator to induce an order for assistance of non-abiguous sequences
CIdxIdx(const CIdxIdx &oII)
CIdxIdx & operator=(const CIdxIdx &oII)
bool operator==(const CIdxIdx &oII) const