Public Types | Public Member Functions | Public Attributes | Protected Attributes
alvar::Labeling Class Reference

Base class for labeling connected components from binary image. More...

#include <ConnectedComponents.h>

Inheritance diagram for alvar::Labeling:
Inheritance graph
[legend]

List of all members.

Public Types

enum  ThresholdMethod { THRESH, ADAPT }
 Two alternatives for thresholding the gray image. ADAPT (adaptive threshold) is only supported currently. More...

Public Member Functions

bool CheckBorder (CvSeq *contour, int width, int height)
 Labeling ()
virtual void LabelSquares (IplImage *image, bool visualize=false)=0
 Labels image and filters blobs to obtain square-shaped objects from the scene.
void SetCamera (Camera *camera)
 Sets the camera object that is used to correct lens distortions.
void SetThreshParams (int param1, int param2)
virtual ~Labeling ()

Public Attributes

std::vector< std::vector
< PointDouble > > 
blob_corners
 Vector of 4-length vectors where the corners of detected blobs are stored.
IplImage * bw
 Pointer to binary image that is then labeled.
IplImage * gray
 Pointer to grayscale image that is thresholded for labeling.

Protected Attributes

Cameracam
int thresh_param1
int thresh_param2

Detailed Description

Base class for labeling connected components from binary image.

Definition at line 51 of file ConnectedComponents.h.


Member Enumeration Documentation

Two alternatives for thresholding the gray image. ADAPT (adaptive threshold) is only supported currently.

Enumerator:
THRESH 
ADAPT 

Definition at line 78 of file ConnectedComponents.h.


Constructor & Destructor Documentation

Constructor

Definition at line 33 of file ConnectedComponents.cpp.

Destructor

Definition at line 42 of file ConnectedComponents.cpp.


Member Function Documentation

bool alvar::Labeling::CheckBorder ( CvSeq *  contour,
int  width,
int  height 
)

Definition at line 50 of file ConnectedComponents.cpp.

virtual void alvar::Labeling::LabelSquares ( IplImage *  image,
bool  visualize = false 
) [pure virtual]

Labels image and filters blobs to obtain square-shaped objects from the scene.

Implemented in alvar::LabelingCvSeq.

void alvar::Labeling::SetCamera ( Camera camera) [inline]

Sets the camera object that is used to correct lens distortions.

Definition at line 93 of file ConnectedComponents.h.

void alvar::Labeling::SetThreshParams ( int  param1,
int  param2 
) [inline]
Examples:
SampleLabeling.cpp.

Definition at line 102 of file ConnectedComponents.h.


Member Data Documentation

std::vector<std::vector<PointDouble> > alvar::Labeling::blob_corners

Vector of 4-length vectors where the corners of detected blobs are stored.

Definition at line 73 of file ConnectedComponents.h.

Pointer to binary image that is then labeled.

Definition at line 68 of file ConnectedComponents.h.

Definition at line 56 of file ConnectedComponents.h.

Pointer to grayscale image that is thresholded for labeling.

Definition at line 64 of file ConnectedComponents.h.

Definition at line 57 of file ConnectedComponents.h.

Definition at line 57 of file ConnectedComponents.h.


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


ar_track_alvar
Author(s): Scott Niekum
autogenerated on Thu Feb 16 2017 03:23:02