cmv_region.h File Reference
#include <stdio.h>
#include "cmv_types.h"
#include <ext/hash_map>
Include dependency graph for cmv_region.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
|
Namespaces |
namespace | CMVision |
namespace | __gnu_cxx |
Classes |
struct | hashcmp_eqstr |
class | CMVision::DummyT1< T > |
Defines |
#define | REMOVE_NOISE |
#define | AdvanceToNextRun(x, y) (x+1) |
#define | CMV_RBITS 6 |
#define | CMV_RADIX (1 << CMV_RBITS) |
#define | CMV_RMASK (CMV_RADIX-1) |
Functions |
int | range_sum (int x, int w) |
template<class num> |
int | bottom_bit (num n) |
template<class num> |
num | top_bit (num n) |
template<class rle_t, class tmap_t> |
int | EncodeRuns (rle_t *rle, tmap_t *map, int width, int height, int max_runs) |
template<class rle_t, class tmap_t, class edge_t> |
int | EncodeRunsUseEdges (rle_t *rle, tmap_t *map, edge_t *edge_map, int width, int height, int max_runs) |
template<class rle_t> |
bool | CheckRuns (rle_t *rle, int num_runs, int width, int height) |
template<class rle_t> |
void | ConnectComponents (rle_t *map, int num) |
template<class region_t, class rle_t> |
int | ExtractRegions (region_t *reg, int max_reg, rle_t *rmap, int num) |
template<class color_class_state_t, class region_t> |
int | SeparateRegions (color_class_state_t *color, int colors, region_t *reg, int num) |
template<class region_t> |
region_t * | SortRegionListByArea (region_t *list, int passes) |
template<class color_class_state_t> |
void | SortRegions (color_class_state_t *color, int colors, int max_area) |
template<class region, class rle_t> |
void | MergeRegions (region *p, region *q, region **q_prev_next, rle_t *runs) |
template<class region> |
void | CalcXYBounds (region *p, double density_thresh, int area, int &xl, int &xh, int &yl, int &yh) |
template<class region, class rle_t> |
int | MergeRegions (region *p, double density_thresh, rle_t *runs) |
template<class color_class_state_t, class rle_t> |
int | MergeRegions (color_class_state_t *color, int colors, rle_t *runs) |
template<class region, class rle_t> |
bool | CheckRegions (region *p, rle_t *runs) |
template<class color_class_state_t, class rle_t> |
bool | CheckRegions (color_class_state_t *color, int colors, rle_t *runs) |
template<class region_t, class rle_t> |
int | FindStart (rle_t *rmap, int left, int right, int x, DummyT1< region_t > dummy=DummyT1< region_t >()) |
template<class rle_t> |
int | FindStart (rle_t *rmap, int left, int right, int x, int y) |
template<class region_t, class rle_t> |
void | CreateRunIndex (int *yindex, rle_t *rmap, int num, DummyT1< region_t > dummy=DummyT1< region_t >()) |
template<class color_class_state_t> |
void | GetNextRegion (color_class_state_t *color, int colors, int max_area) |
template<class color_class_state_t> |
void | CalcTotalArea (color_class_state_t *color) |
template<class color_class_state_t> |
void | CalcTotalArea (color_class_state_t *color, int colors) |
template<class data> |
int | find (data *arr, int start, int end, data key) |
template<class color_class_state_t> |
int | LoadColorInformation (color_class_state_t *color, int max, const char *filename, hash_map< const char *, unsigned int, hash< const char * >, hashcmp_eqstr > &color_names) |
Variables |
const unsigned int | MAX_COLORS = 20 |
const int | log2modp [37] |
Define Documentation
#define AdvanceToNextRun |
( |
x, |
|
|
y |
|
) |
(x+1) |
|
#define CMV_RADIX (1 << CMV_RBITS) |
|
#define CMV_RMASK (CMV_RADIX-1) |
|
Function Documentation
template<class num> |
int bottom_bit |
( |
num |
n |
) |
[inline] |
|
template<class color_class_state_t> |
void CalcTotalArea |
( |
color_class_state_t * |
color, |
|
|
int |
colors |
|
) |
|
|
template<class color_class_state_t> |
void CalcTotalArea |
( |
color_class_state_t * |
color |
) |
|
|
template<class region> |
void CalcXYBounds |
( |
region * |
p, |
|
|
double |
density_thresh, |
|
|
int |
area, |
|
|
int & |
xl, |
|
|
int & |
xh, |
|
|
int & |
yl, |
|
|
int & |
yh |
|
) |
|
|
template<class color_class_state_t, class rle_t> |
bool CheckRegions |
( |
color_class_state_t * |
color, |
|
|
int |
colors, |
|
|
rle_t * |
runs |
|
) |
|
|
template<class region, class rle_t> |
bool CheckRegions |
( |
region * |
p, |
|
|
rle_t * |
runs |
|
) |
|
|
template<class rle_t> |
bool CheckRuns |
( |
rle_t * |
rle, |
|
|
int |
num_runs, |
|
|
int |
width, |
|
|
int |
height |
|
) |
|
|
template<class rle_t> |
void ConnectComponents |
( |
rle_t * |
map, |
|
|
int |
num |
|
) |
|
|
template<class region_t, class rle_t> |
void CreateRunIndex |
( |
int * |
yindex, |
|
|
rle_t * |
rmap, |
|
|
int |
num, |
|
|
DummyT1< region_t > |
dummy = DummyT1<region_t>() |
|
) |
|
|
template<class rle_t, class tmap_t> |
int EncodeRuns |
( |
rle_t * |
rle, |
|
|
tmap_t * |
map, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
max_runs |
|
) |
|
|
template<class rle_t, class tmap_t, class edge_t> |
int EncodeRunsUseEdges |
( |
rle_t * |
rle, |
|
|
tmap_t * |
map, |
|
|
edge_t * |
edge_map, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
max_runs |
|
) |
|
|
template<class region_t, class rle_t> |
int ExtractRegions |
( |
region_t * |
reg, |
|
|
int |
max_reg, |
|
|
rle_t * |
rmap, |
|
|
int |
num |
|
) |
|
|
template<class data> |
int find |
( |
data * |
arr, |
|
|
int |
start, |
|
|
int |
end, |
|
|
data |
key |
|
) |
|
|
template<class rle_t> |
int FindStart |
( |
rle_t * |
rmap, |
|
|
int |
left, |
|
|
int |
right, |
|
|
int |
x, |
|
|
int |
y |
|
) |
|
|
template<class region_t, class rle_t> |
int FindStart |
( |
rle_t * |
rmap, |
|
|
int |
left, |
|
|
int |
right, |
|
|
int |
x, |
|
|
DummyT1< region_t > |
dummy = DummyT1<region_t>() |
|
) |
|
|
template<class color_class_state_t> |
void GetNextRegion |
( |
color_class_state_t * |
color, |
|
|
int |
colors, |
|
|
int |
max_area |
|
) |
|
|
template<class color_class_state_t> |
int LoadColorInformation |
( |
color_class_state_t * |
color, |
|
|
int |
max, |
|
|
const char * |
filename, |
|
|
hash_map< const char *, unsigned int, hash< const char * >, hashcmp_eqstr > & |
color_names |
|
) |
|
|
template<class color_class_state_t, class rle_t> |
int MergeRegions |
( |
color_class_state_t * |
color, |
|
|
int |
colors, |
|
|
rle_t * |
runs |
|
) |
|
|
template<class region, class rle_t> |
int MergeRegions |
( |
region * |
p, |
|
|
double |
density_thresh, |
|
|
rle_t * |
runs |
|
) |
|
|
template<class region, class rle_t> |
void MergeRegions |
( |
region * |
p, |
|
|
region * |
q, |
|
|
region ** |
q_prev_next, |
|
|
rle_t * |
runs |
|
) |
|
|
int range_sum |
( |
int |
x, |
|
|
int |
w |
|
) |
[inline] |
|
template<class color_class_state_t, class region_t> |
int SeparateRegions |
( |
color_class_state_t * |
color, |
|
|
int |
colors, |
|
|
region_t * |
reg, |
|
|
int |
num |
|
) |
|
|
template<class region_t> |
region_t* SortRegionListByArea |
( |
region_t * |
list, |
|
|
int |
passes |
|
) |
|
|
template<class color_class_state_t> |
void SortRegions |
( |
color_class_state_t * |
color, |
|
|
int |
colors, |
|
|
int |
max_area |
|
) |
|
|
template<class num> |
num top_bit |
( |
num |
n |
) |
[inline] |
|
Variable Documentation
|
Initial value: {
0, 1, 2,27, 3,24,28, 0, 4,17,25,31,29,12, 0,14, 5, 8,18,
0,26,23,32,16,30,11,13, 7, 0,22,15,10, 6,21, 9,20,19
}
Definition at line 47 of file cmv_region.h.
Referenced by CMVision::bottom_bit(), and CMVision::top_bit(). |
|