![]() |
My Project
|
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. | |
Public Member Functions | |
Labeling () | |
~Labeling () | |
void | SetCamera (Camera *camera) |
Sets the camera object that is used to correct lens distortions. | |
virtual void | LabelSquares (cv::Mat &image, bool visualize=false)=0 |
Labels image and filters blobs to obtain square-shaped objects from the scene. | |
bool | CheckBorder (const std::vector< cv::Point > &contour, int width, int height) |
void | SetThreshParams (int param1, int param2) |
Public Attributes | |
cv::Mat | gray |
Pointer to grayscale image that is thresholded for labeling. | |
cv::Mat | bw |
Pointer to binary image that is then labeled. | |
std::vector< std::vector< PointDouble > > | blob_corners |
Vector of 4-length vectors where the corners of detected blobs are stored. | |
Protected Attributes | |
Camera * | cam |
int | thresh_param1 |
int | thresh_param2 |
Base class for labeling connected components from binary image.
Definition at line 48 of file ConnectedComponents.h.
Labeling | ( | ) |
Constructor
~Labeling | ( | ) |
Destructor