Bsoft  1.9
Bernard's software package
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
img_graphseg.h
Go to the documentation of this file.
1 
9 #include "rwimg.h"
10 
11 struct Edge {
12  size_t u, v; // Edge ends in the 1D data array
13  float w; // Edge weight: Neighbor value difference
14 } ;
15 
16 struct Region {
17  long p; // Region index
18  int r; // Number of region joins
19  int s; // Number of voxels in the region
20  float a; // Average value for the region
21 } ;
22 
23 // Function prototypes
24 size_t img_graph_segment(int type, Bimage* p, Bimage* pmask, int connect_type, double complexity, int min_size);
25 
float w
Definition: img_graphseg.h:13
float a
Definition: img_graphseg.h:20
long p
Definition: img_graphseg.h:17
General image parameter class.
Definition: Bimage.h:133
size_t v
Definition: img_graphseg.h:12
size_t u
Definition: img_graphseg.h:12
size_t img_graph_segment(int type, Bimage *p, Bimage *pmask, int connect_type, double complexity, int min_size)
Graph-based segmentation of an image.
Header file for 2D and 3D image I/O.