Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
alvar::Labeling Class Referenceabstract

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

#include <ConnectedComponents.h>

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

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. More...
 
void SetCamera (Camera *camera)
 Sets the camera object that is used to correct lens distortions. More...
 
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. More...
 
IplImage * bw
 Pointer to binary image that is then labeled. More...
 
IplImage * gray
 Pointer to grayscale image that is thresholded for labeling. More...
 

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

alvar::Labeling::Labeling ( )

Constructor

Definition at line 33 of file ConnectedComponents.cpp.

alvar::Labeling::~Labeling ( )
virtual

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.

IplImage* alvar::Labeling::bw

Pointer to binary image that is then labeled.

Definition at line 68 of file ConnectedComponents.h.

Camera* alvar::Labeling::cam
protected

Definition at line 56 of file ConnectedComponents.h.

IplImage* alvar::Labeling::gray

Pointer to grayscale image that is thresholded for labeling.

Definition at line 64 of file ConnectedComponents.h.

int alvar::Labeling::thresh_param1
protected

Definition at line 57 of file ConnectedComponents.h.

int alvar::Labeling::thresh_param2
protected

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 Mon Jun 10 2019 12:47:04