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.  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 | |
| 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.
| Enumerator | |
|---|---|
| THRESH | |
| ADAPT | |
Definition at line 78 of file ConnectedComponents.h.
| alvar::Labeling::Labeling | ( | ) | 
Constructor
Definition at line 33 of file ConnectedComponents.cpp.
| 
 | virtual | 
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.
| 
 | pure virtual | 
Labels image and filters blobs to obtain square-shaped objects from the scene.
Implemented in alvar::LabelingCvSeq.
| 
 | inline | 
Sets the camera object that is used to correct lens distortions.
Definition at line 93 of file ConnectedComponents.h.
| 
 | inline | 
Definition at line 102 of file ConnectedComponents.h.
| 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.
| 
 | 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.
| 
 | protected | 
Definition at line 57 of file ConnectedComponents.h.
| 
 | protected | 
Definition at line 57 of file ConnectedComponents.h.