Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

cmv_region.h File Reference


Detailed Description

Region and connected component support for CMVision.

Author:
James R. Bruce, School of Computer Science, Carnegie Mellon University
Licensed under the GNU GPL version 2

Author
ejt
Name
tekkotsu-4_0
Revision
1.11
State
Exp
Date
2007/11/11 23:57:27

Definition in file cmv_region.h.

#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

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 CMVision::range_sum (int x, int w)
template<class num>
int CMVision::bottom_bit (num n)
template<class num>
num CMVision::top_bit (num n)
template<class rle_t, class tmap_t>
int CMVision::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 CMVision::EncodeRunsUseEdges (rle_t *rle, tmap_t *map, edge_t *edge_map, int width, int height, int max_runs)
template<class rle_t>
bool CMVision::CheckRuns (rle_t *rle, int num_runs, int width, int height)
template<class rle_t>
void CMVision::ConnectComponents (rle_t *map, int num)
template<class region_t, class rle_t>
int CMVision::ExtractRegions (region_t *reg, int max_reg, rle_t *rmap, int num)
template<class color_class_state_t, class region_t>
int CMVision::SeparateRegions (color_class_state_t *color, int colors, region_t *reg, int num)
template<class region_t>
region_t * CMVision::SortRegionListByArea (region_t *list, int passes)
template<class color_class_state_t>
void CMVision::SortRegions (color_class_state_t *color, int colors, int max_area)
template<class region, class rle_t>
void CMVision::MergeRegions (region *p, region *q, region **q_prev_next, rle_t *runs)
template<class region>
void CMVision::CalcXYBounds (region *p, double density_thresh, int area, int &xl, int &xh, int &yl, int &yh)
template<class region, class rle_t>
int CMVision::MergeRegions (region *p, double density_thresh, rle_t *runs)
template<class color_class_state_t, class rle_t>
int CMVision::MergeRegions (color_class_state_t *color, int colors, rle_t *runs)
template<class region, class rle_t>
bool CMVision::CheckRegions (region *p, rle_t *runs)
template<class color_class_state_t, class rle_t>
bool CMVision::CheckRegions (color_class_state_t *color, int colors, rle_t *runs)
template<class region_t, class rle_t>
int CMVision::FindStart (rle_t *rmap, int left, int right, int x, DummyT1< region_t > dummy=DummyT1< region_t >())
template<class rle_t>
int CMVision::FindStart (rle_t *rmap, int left, int right, int x, int y)
template<class region_t, class rle_t>
void CMVision::CreateRunIndex (int *yindex, rle_t *rmap, int num, DummyT1< region_t > dummy=DummyT1< region_t >())
template<class color_class_state_t>
void CMVision::GetNextRegion (color_class_state_t *color, int colors, int max_area)
template<class color_class_state_t>
void CMVision::CalcTotalArea (color_class_state_t *color)
template<class color_class_state_t>
void CMVision::CalcTotalArea (color_class_state_t *color, int colors)
template<class data>
int CMVision::find (data *arr, int start, int end, data key)
template<class color_class_state_t>
int CMVision::LoadColorInformation (color_class_state_t *color, int max, const char *filename, __gnu_cxx::hash_map< const char *, unsigned int, __gnu_cxx::hash< const char * >, hashcmp_eqstr > &color_names)

Variables

const unsigned int MAX_COLORS = 20
const int CMVision::log2modp [37]


Define Documentation

#define AdvanceToNextRun ( x,
 )     (x+1)

#define CMV_RADIX   (1 << CMV_RBITS)

Definition at line 614 of file cmv_region.h.

Referenced by CMVision::SortRegionListByArea().

#define CMV_RBITS   6

Definition at line 613 of file cmv_region.h.

Referenced by CMVision::SortRegionListByArea(), and CMVision::SortRegions().

#define CMV_RMASK   (CMV_RADIX-1)

Definition at line 615 of file cmv_region.h.

Referenced by CMVision::SortRegionListByArea().

#define REMOVE_NOISE

Definition at line 88 of file cmv_region.h.


Variable Documentation

const unsigned int MAX_COLORS = 20

Definition at line 18 of file cmv_region.h.

Referenced by CMVision::EncodeRuns(), and CMVision::EncodeRunsUseEdges().


Tekkotsu v4.0
Generated Thu Nov 22 00:55:11 2007 by Doxygen 1.5.4