Direct Graphical Models  v.1.7.0
DirectGraphicalModels::Edge Struct Reference

Edge structure More...

#include <GraphPairwise.h>

Public Member Functions

 Edge (void)=delete
 
 Edge (size_t n1, size_t n2, byte group=0, const Mat &p=EmptyMat)
 
 ~Edge (void)
 
void msg_swap (void)
 

Public Attributes

size_t node1
 First (source) node in edge. More...
 
size_t node2
 Second (destination) node in edge. More...
 
Mat Pot
 The edge potentials: Mat(size: nStates x nStates; type: CV_32FC1) More...
 
float * msg
 Message (used in message-passing algorithms): Mat(size: nStates x 1; type: CV_32FC1) More...
 
float * msg_temp
 Temp Message (used in message-passing algorithms): Mat(size: nStates x 1; type: CV_32FC1) More...
 
byte group_id
 ID of the group, to which the edge belongs. More...
 
bool suspend
 Flag, indicating weather the message calculation must be postponed (used in message-passing algorithms) More...
 

Detailed Description

Edge structure

Basic item stored in adjacency list.

Definition at line 32 of file GraphPairwise.h.

Constructor & Destructor Documentation

◆ Edge() [1/2]

DirectGraphicalModels::Edge::Edge ( void  )
delete

◆ Edge() [2/2]

DirectGraphicalModels::Edge::Edge ( size_t  n1,
size_t  n2,
byte  group = 0,
const Mat &  p = EmptyMat 
)
inline

Definition at line 42 of file GraphPairwise.h.

◆ ~Edge()

DirectGraphicalModels::Edge::~Edge ( void  )
inline

Definition at line 44 of file GraphPairwise.h.

Member Function Documentation

◆ msg_swap()

void DirectGraphicalModels::Edge::msg_swap ( void  )
inline

Definition at line 49 of file GraphPairwise.h.

Member Data Documentation

◆ group_id

byte DirectGraphicalModels::Edge::group_id

ID of the group, to which the edge belongs.

Definition at line 38 of file GraphPairwise.h.

◆ msg

float* DirectGraphicalModels::Edge::msg

Message (used in message-passing algorithms): Mat(size: nStates x 1; type: CV_32FC1)

Definition at line 36 of file GraphPairwise.h.

◆ msg_temp

float* DirectGraphicalModels::Edge::msg_temp

Temp Message (used in message-passing algorithms): Mat(size: nStates x 1; type: CV_32FC1)

Definition at line 37 of file GraphPairwise.h.

◆ node1

size_t DirectGraphicalModels::Edge::node1

First (source) node in edge.

Definition at line 33 of file GraphPairwise.h.

◆ node2

size_t DirectGraphicalModels::Edge::node2

Second (destination) node in edge.

Definition at line 34 of file GraphPairwise.h.

◆ Pot

Mat DirectGraphicalModels::Edge::Pot

The edge potentials: Mat(size: nStates x nStates; type: CV_32FC1)

Definition at line 35 of file GraphPairwise.h.

◆ suspend

bool DirectGraphicalModels::Edge::suspend

Flag, indicating weather the message calculation must be postponed (used in message-passing algorithms)

Definition at line 39 of file GraphPairwise.h.


The documentation for this struct was generated from the following file: