MeVisLab Toolbox Reference
CSOLiveWireNode.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
15
16#pragma once
17
18
19#include "MLCSOSystem.h"
20#include "MLCSOIncludes.h"
21
22#include "CSOHeapObject.h"
23
25
27
30{
31 unsigned int posx = 0;
32 unsigned int posy = 0;
33};
34
36
39{
42 {
43 isVisited = false;
44 value = FLT_MAX;
45
46 posx = posy = -1; // uninitialized position
47 }
48
49 bool isVisited;
51
52 int posx;
53 int posy;
54
55};
56
58
64
66
69{
71 float laplace;
72
75
76 float directionalCosts[8];
77};
78
80
#define MLCSO_EXPORT
Defines export symbols for classes, so they can be used in other DLLs.
Definition MLCSOSystem.h:23
CSOHeapObject: base class for objects to be used with the heap.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
Structure holding a live wire node for the shortest path algorithm.
char directionToPred
Direction to the preceding node in the path. (-1 means not yet set)
CSOLiveWireNodeBase()
Constructor, initializes some internal variables.
bool isVisited
Has this node been visited before?
Extended node, which stores various features per node.
float gradientNormalized
normalized gradient costs
float laplaceFeature
Laplacian zero crossing costs.
float laplace
result of laplace convolution
Vector2f D
temp variable
Simple node, which stores a single cost value per node.
float cost
the cost at this node
Structure holding a 2D voxel position.