Classes | Public Types | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
Labeling< SrcT, DstT > Class Template Reference

#include <Labeling.h>

List of all members.

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
RegionInfoGetResultRegionInfo (const int num) const
 Labeling ()
virtual ~Labeling ()

Private Member Functions

RegionInfoConnectRasterSegment (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
RSPListraster_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

Detailed Description

template<class SrcT, class DstT>
class Labeling< SrcT, DstT >

Definition at line 43 of file Labeling.h.


Member Typedef Documentation

template<class SrcT , class DstT >
typedef std::list<RegionInfo *>::iterator Labeling< SrcT, DstT >::RIPIterator

Definition at line 371 of file Labeling.h.

template<class SrcT , class DstT >
typedef std::list<RegionInfo *> Labeling< SrcT, DstT >::RIPList

Definition at line 370 of file Labeling.h.

template<class SrcT , class DstT >
typedef std::vector<RegionInfo *> Labeling< SrcT, DstT >::RIPVector

Definition at line 373 of file Labeling.h.

template<class SrcT , class DstT >
typedef std::list<RasterSegment *>::iterator Labeling< SrcT, DstT >::RSPIterator

Definition at line 131 of file Labeling.h.

template<class SrcT , class DstT >
typedef std::list<RasterSegment *> Labeling< SrcT, DstT >::RSPList

Definition at line 130 of file Labeling.h.

template<class SrcT , class DstT >
typedef std::queue<RasterSegment *> Labeling< SrcT, DstT >::RSPQueue

Definition at line 133 of file Labeling.h.


Constructor & Destructor Documentation

template<class SrcT , class DstT >
Labeling< SrcT, DstT >::Labeling ( ) [inline]

Definition at line 586 of file Labeling.h.

template<class SrcT , class DstT >
virtual Labeling< SrcT, DstT >::~Labeling ( ) [inline, virtual]

Definition at line 593 of file Labeling.h.


Member Function Documentation

template<class SrcT , class DstT >
RegionInfo* Labeling< SrcT, DstT >::ConnectRasterSegment ( RasterSegment rs_seed,
const DstT  region_num 
) [inline, private]

Definition at line 461 of file Labeling.h.

template<class SrcT , class DstT >
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.

template<class SrcT , class DstT >
void Labeling< SrcT, DstT >::FillFrame ( RegionInfo ri,
const DstT  fill_value 
) [inline, private]

Definition at line 541 of file Labeling.h.

template<class SrcT , class DstT >
int Labeling< SrcT, DstT >::GetNumOfRegions ( void  ) const [inline]

Definition at line 569 of file Labeling.h.

template<class SrcT , class DstT >
int Labeling< SrcT, DstT >::GetNumOfResultRegions ( void  ) const [inline]

Definition at line 575 of file Labeling.h.

template<class SrcT , class DstT >
RegionInfo* Labeling< SrcT, DstT >::GetResultRegionInfo ( const int  num) const [inline]

Definition at line 581 of file Labeling.h.

template<class SrcT , class DstT >
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.

template<class SrcT , class DstT >
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.

template<class SrcT , class DstT >
void Labeling< SrcT, DstT >::SearchNeighboringSegment ( RasterSegment rs_seed,
const int  dy 
) [inline, private]

Definition at line 408 of file Labeling.h.


Member Data Documentation

template<class SrcT , class DstT >
const int Labeling< SrcT, DstT >::DEFAULT_REGION_SIZE_MIN = 10 [static, private]

Definition at line 376 of file Labeling.h.

template<class SrcT , class DstT >
DstT* Labeling< SrcT, DstT >::dst_frame [private]

Definition at line 379 of file Labeling.h.

template<class SrcT , class DstT >
int Labeling< SrcT, DstT >::height [private]

Definition at line 381 of file Labeling.h.

template<class SrcT , class DstT >
int Labeling< SrcT, DstT >::num_of_raster_segments [private]

Definition at line 385 of file Labeling.h.

template<class SrcT , class DstT >
int Labeling< SrcT, DstT >::num_of_regions [private]

Definition at line 390 of file Labeling.h.

template<class SrcT , class DstT >
int Labeling< SrcT, DstT >::num_of_result_regions [private]

Definition at line 393 of file Labeling.h.

template<class SrcT , class DstT >
RSPList* Labeling< SrcT, DstT >::raster_segment_list [private]

Definition at line 384 of file Labeling.h.

template<class SrcT , class DstT >
RIPList Labeling< SrcT, DstT >::region_info_list [private]

Definition at line 389 of file Labeling.h.

template<class SrcT , class DstT >
RIPVector Labeling< SrcT, DstT >::result_region_info [private]

Definition at line 392 of file Labeling.h.

template<class SrcT , class DstT >
RSPQueue Labeling< SrcT, DstT >::seed_queue [private]

Definition at line 387 of file Labeling.h.

template<class SrcT , class DstT >
SrcT* Labeling< SrcT, DstT >::src_frame [private]

Definition at line 378 of file Labeling.h.

template<class SrcT , class DstT >
int Labeling< SrcT, DstT >::total_num [private]

Definition at line 382 of file Labeling.h.

template<class SrcT , class DstT >
int Labeling< SrcT, DstT >::width [private]

Definition at line 380 of file Labeling.h.


The documentation for this class was generated from the following file:


jsk_perception
Author(s): Manabu Saito, Ryohei Ueda
autogenerated on Sun Oct 8 2017 02:43:24