MEPP2 Project
Functions | Variables
Compression_Valence_Common.h File Reference
#include <CGAL/boost/graph/internal/helpers.h>
#include <CGAL/boost/graph/iterator.h>
Include dependency graph for Compression_Valence_Common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void RGB_To_LAB (float r, float g, float b, float *lab)
 Rgb to lab. More...
 
void LAB_To_RGB (float L, float A, float B, float *rgb)
 Lab to rgb. More...
 
template<typename Graph >
boost::graph_traits< Graph >::halfedge_descriptor fixed_CGAL_Euler_add_vertex_and_face_to_border (typename boost::graph_traits< Graph >::halfedge_descriptor h1, typename boost::graph_traits< Graph >::halfedge_descriptor h2, Graph &g)
 

Variables

const int RGB_Range = std::pow((int)2, 4.0) - 1
 
const int RGB_QUANTIZATION = 8
 
const int C0_QUANTIZATION = 8
 
const int C1_QUANTIZATION = 8
 
const int C2_QUANTIZATION = 8
 
const int FREE = -1
 
const int CONQUERED = 0
 
const int TO_BE_REMOVED = 1
 
const int TEMP_FLAG = 2
 
const int PLUS = 1
 The plus tag for retriangulation. More...
 
const int MINUS = -1
 The minus tag for retriangulation. More...
 
const int NOSIGN = 0
 The nosign tag for retriangulation. More...
 
const int FIRST_COORDINATE = 1
 The first coordinate tag for seed gate. More...
 
const int SECOND_COORDINATE = 2
 The second coordinate tag for seed gate. More...
 
const int OTHER_COORDINATE = -1
 The other coordinate tag for seed gate. More...
 
const int DECIMATION_CONNECTIVITY_SYMBOL
 The decimation connectivity symbol. More...
 
const int LIMIT_QBIT = 4
 The limit qbit. More...
 
const double PI
 

Function Documentation

◆ fixed_CGAL_Euler_add_vertex_and_face_to_border()

template<typename Graph >
boost::graph_traits< Graph >::halfedge_descriptor fixed_CGAL_Euler_add_vertex_and_face_to_border ( typename boost::graph_traits< Graph >::halfedge_descriptor  h1,
typename boost::graph_traits< Graph >::halfedge_descriptor  h2,
Graph &  g 
)

appends a new face to the border halfedge h2 by connecting the tip of h2 with the tip of h1 with two new halfedges and a new vertex and creating a new face that is incident to h2. Note that add_vertex_and_face_to_border() does not deal with properties of new vertices, halfedges, and faces.

Template Parameters
Graphmust be a model of MutableFaceGraph
Returns
the halfedge of the new edge that is incident to the new face and the new vertex.
Precondition
h1 and h2 are border halfedges
h1 != h2,
h1 and h2 are on the same border.

Definition at line 240 of file Compression_Valence_Common.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LAB_To_RGB()

void LAB_To_RGB ( float  L,
float  A,
float  B,
float *  rgb 
)
inline

Lab to rgb.

Parameters
LThe.
Aa.
BThe.
[in,out]rgbIf non-null, the rgb.

Definition at line 141 of file Compression_Valence_Common.h.

Here is the caller graph for this function:

◆ RGB_To_LAB()

void RGB_To_LAB ( float  r,
float  g,
float  b,
float *  lab 
)
inline

Rgb to lab.

Parameters
rThe.
gThe.
bThe.
[in,out]labIf non-null, the lab.

Definition at line 66 of file Compression_Valence_Common.h.

Here is the caller graph for this function:

Variable Documentation

◆ C0_QUANTIZATION

const int C0_QUANTIZATION = 8

Definition at line 30 of file Compression_Valence_Common.h.

◆ C1_QUANTIZATION

const int C1_QUANTIZATION = 8

Definition at line 31 of file Compression_Valence_Common.h.

◆ C2_QUANTIZATION

const int C2_QUANTIZATION = 8

Definition at line 32 of file Compression_Valence_Common.h.

◆ CONQUERED

const int CONQUERED = 0

Definition at line 35 of file Compression_Valence_Common.h.

◆ DECIMATION_CONNECTIVITY_SYMBOL

const int DECIMATION_CONNECTIVITY_SYMBOL
Initial value:
=
5

The decimation connectivity symbol.

Definition at line 48 of file Compression_Valence_Common.h.

◆ FIRST_COORDINATE

const int FIRST_COORDINATE = 1

The first coordinate tag for seed gate.

Definition at line 43 of file Compression_Valence_Common.h.

◆ FREE

const int FREE = -1

Definition at line 34 of file Compression_Valence_Common.h.

◆ LIMIT_QBIT

const int LIMIT_QBIT = 4

The limit qbit.

Definition at line 50 of file Compression_Valence_Common.h.

◆ MINUS

const int MINUS = -1

The minus tag for retriangulation.

Definition at line 40 of file Compression_Valence_Common.h.

◆ NOSIGN

const int NOSIGN = 0

The nosign tag for retriangulation.

Definition at line 41 of file Compression_Valence_Common.h.

◆ OTHER_COORDINATE

const int OTHER_COORDINATE = -1

The other coordinate tag for seed gate.

Definition at line 45 of file Compression_Valence_Common.h.

◆ PI

const double PI
Initial value:
=
3.14159265358979323846264338327950288419716939937510582097494459

The pi

Definition at line 51 of file Compression_Valence_Common.h.

◆ PLUS

const int PLUS = 1

The plus tag for retriangulation.

Definition at line 39 of file Compression_Valence_Common.h.

◆ RGB_QUANTIZATION

const int RGB_QUANTIZATION = 8

Definition at line 29 of file Compression_Valence_Common.h.

◆ RGB_Range

const int RGB_Range = std::pow((int)2, 4.0) - 1

Definition at line 26 of file Compression_Valence_Common.h.

◆ SECOND_COORDINATE

const int SECOND_COORDINATE = 2

The second coordinate tag for seed gate.

Definition at line 44 of file Compression_Valence_Common.h.

◆ TEMP_FLAG

const int TEMP_FLAG = 2

Definition at line 37 of file Compression_Valence_Common.h.

◆ TO_BE_REMOVED

const int TO_BE_REMOVED = 1

Definition at line 36 of file Compression_Valence_Common.h.