Base class for labeling connected components from binary image. More...
#include <ConnectedComponents.h>
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) |
~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 | |
Camera * | cam |
int | thresh_param1 |
int | thresh_param2 |
Base class for labeling connected components from binary image.
Definition at line 51 of file ConnectedComponents.h.
Two alternatives for thresholding the gray image. ADAPT (adaptive threshold) is only supported currently.
Definition at line 78 of file ConnectedComponents.h.
Constructor
Definition at line 33 of file ConnectedComponents.cpp.
Destructor
Definition at line 42 of file ConnectedComponents.cpp.
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] |
Definition at line 102 of file ConnectedComponents.h.
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.