#include <Labeling.h>
Classes | |
class | RasterSegment |
class | RegionInfo |
Public Types | |
typedef std::list< RegionInfo * > ::iterator | RIPIterator |
typedef std::list< RegionInfo * > | RIPList |
typedef std::vector< RegionInfo * > | RIPVector |
typedef std::list < RasterSegment * >::iterator | RSPIterator |
typedef std::list < RasterSegment * > | RSPList |
typedef std::queue < RasterSegment * > | RSPQueue |
Public Member Functions | |
int | Exec (SrcT *target, DstT *result, int target_width, int target_height, const bool is_sort_region, const int region_size_min) |
int | GetNumOfRegions (void) const |
int | GetNumOfResultRegions (void) const |
RegionInfo * | GetResultRegionInfo (const int num) const |
Labeling () | |
virtual | ~Labeling () |
Private Member Functions | |
RegionInfo * | ConnectRasterSegment (RasterSegment *rs_seed, const DstT region_num) |
void | FillFrame (RegionInfo *ri, const DstT fill_value) |
void | RegisterSegment (const int lx, const int rx, const int y, const SrcT src_value) |
void | SearchNeighboringSegment (RasterSegment *rs_seed, const int dy) |
Static Private Member Functions | |
static bool | RevCompRegionInfoPointer (const RegionInfo *const &l, const RegionInfo *const &r) |
Private Attributes | |
DstT * | dst_frame |
int | height |
int | num_of_raster_segments |
int | num_of_regions |
int | num_of_result_regions |
RSPList * | raster_segment_list |
RIPList | region_info_list |
RIPVector | result_region_info |
RSPQueue | seed_queue |
SrcT * | src_frame |
int | total_num |
int | width |
Static Private Attributes | |
static const int | DEFAULT_REGION_SIZE_MIN = 10 |
Definition at line 43 of file Labeling.h.
typedef std::list<RegionInfo *>::iterator Labeling< SrcT, DstT >::RIPIterator |
Definition at line 371 of file Labeling.h.
typedef std::list<RegionInfo *> Labeling< SrcT, DstT >::RIPList |
Definition at line 370 of file Labeling.h.
typedef std::vector<RegionInfo *> Labeling< SrcT, DstT >::RIPVector |
Definition at line 373 of file Labeling.h.
typedef std::list<RasterSegment *>::iterator Labeling< SrcT, DstT >::RSPIterator |
Definition at line 131 of file Labeling.h.
typedef std::list<RasterSegment *> Labeling< SrcT, DstT >::RSPList |
Definition at line 130 of file Labeling.h.
typedef std::queue<RasterSegment *> Labeling< SrcT, DstT >::RSPQueue |
Definition at line 133 of file Labeling.h.
Definition at line 586 of file Labeling.h.
Definition at line 593 of file Labeling.h.
RegionInfo* Labeling< SrcT, DstT >::ConnectRasterSegment | ( | RasterSegment * | rs_seed, |
const DstT | region_num | ||
) | [inline, private] |
Definition at line 461 of file Labeling.h.
int Labeling< SrcT, DstT >::Exec | ( | SrcT * | target, |
DstT * | result, | ||
int | target_width, | ||
int | target_height, | ||
const bool | is_sort_region, | ||
const int | region_size_min | ||
) | [inline] |
Definition at line 609 of file Labeling.h.
void Labeling< SrcT, DstT >::FillFrame | ( | RegionInfo * | ri, |
const DstT | fill_value | ||
) | [inline, private] |
Definition at line 541 of file Labeling.h.
int Labeling< SrcT, DstT >::GetNumOfRegions | ( | void | ) | const [inline] |
Definition at line 569 of file Labeling.h.
int Labeling< SrcT, DstT >::GetNumOfResultRegions | ( | void | ) | const [inline] |
Definition at line 575 of file Labeling.h.
RegionInfo* Labeling< SrcT, DstT >::GetResultRegionInfo | ( | const int | num | ) | const [inline] |
Definition at line 581 of file Labeling.h.
void Labeling< SrcT, DstT >::RegisterSegment | ( | const int | lx, |
const int | rx, | ||
const int | y, | ||
const SrcT | src_value | ||
) | [inline, private] |
Definition at line 398 of file Labeling.h.
static bool Labeling< SrcT, DstT >::RevCompRegionInfoPointer | ( | const RegionInfo *const & | l, |
const RegionInfo *const & | r | ||
) | [inline, static, private] |
Definition at line 527 of file Labeling.h.
void Labeling< SrcT, DstT >::SearchNeighboringSegment | ( | RasterSegment * | rs_seed, |
const int | dy | ||
) | [inline, private] |
Definition at line 408 of file Labeling.h.
const int Labeling< SrcT, DstT >::DEFAULT_REGION_SIZE_MIN = 10 [static, private] |
Definition at line 376 of file Labeling.h.
Definition at line 379 of file Labeling.h.
Definition at line 381 of file Labeling.h.
int Labeling< SrcT, DstT >::num_of_raster_segments [private] |
Definition at line 385 of file Labeling.h.
int Labeling< SrcT, DstT >::num_of_regions [private] |
Definition at line 390 of file Labeling.h.
int Labeling< SrcT, DstT >::num_of_result_regions [private] |
Definition at line 393 of file Labeling.h.
RSPList* Labeling< SrcT, DstT >::raster_segment_list [private] |
Definition at line 384 of file Labeling.h.
RIPList Labeling< SrcT, DstT >::region_info_list [private] |
Definition at line 389 of file Labeling.h.
RIPVector Labeling< SrcT, DstT >::result_region_info [private] |
Definition at line 392 of file Labeling.h.
RSPQueue Labeling< SrcT, DstT >::seed_queue [private] |
Definition at line 387 of file Labeling.h.
Definition at line 378 of file Labeling.h.
Definition at line 382 of file Labeling.h.
Definition at line 380 of file Labeling.h.