My Project
Public Types | Public Member Functions | Public Attributes | Protected Attributes | List of all members
Labeling Class Referenceabstract

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

#include <ConnectedComponents.h>

Inheritance diagram for Labeling:
LabelingCvSeq

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

Cameracam
 
int thresh_param1
 
int thresh_param2
 

Detailed Description

Base class for labeling connected components from binary image.

Definition at line 48 of file ConnectedComponents.h.

Constructor & Destructor Documentation

◆ Labeling()

Labeling ( )

Constructor

◆ ~Labeling()

~Labeling ( )

Destructor


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