Public Member Functions | Protected Attributes | List of all members
alvar::LabelingCvSeq Class Reference

Labeling class that uses OpenCV routines to find connected components. More...

#include <ConnectedComponents.h>

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

Public Member Functions

CvSeq * LabelImage (IplImage *image, int min_size, bool approx=false)
 
 LabelingCvSeq ()
 
void LabelSquares (IplImage *image, bool visualize=false)
 Labels image and filters blobs to obtain square-shaped objects from the scene. More...
 
void SetOptions (bool _detect_pose_grayscale=false)
 
 ~LabelingCvSeq ()
 
- Public Member Functions inherited from alvar::Labeling
bool CheckBorder (CvSeq *contour, int width, int height)
 
 Labeling ()
 
void SetCamera (Camera *camera)
 Sets the camera object that is used to correct lens distortions. More...
 
void SetThreshParams (int param1, int param2)
 
virtual ~Labeling ()
 

Protected Attributes

int _min_area
 
int _min_edge
 
int _n_blobs
 
bool detect_pose_grayscale
 
CvMemStorage * storage
 
- Protected Attributes inherited from alvar::Labeling
Cameracam
 
int thresh_param1
 
int thresh_param2
 

Additional Inherited Members

- Public Types inherited from alvar::Labeling
enum  ThresholdMethod { THRESH, ADAPT }
 Two alternatives for thresholding the gray image. ADAPT (adaptive threshold) is only supported currently. More...
 
- Public Attributes inherited from alvar::Labeling
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...
 

Detailed Description

Labeling class that uses OpenCV routines to find connected components.

Examples:
SampleLabeling.cpp.

Definition at line 112 of file ConnectedComponents.h.

Constructor & Destructor Documentation

alvar::LabelingCvSeq::LabelingCvSeq ( )

Definition at line 61 of file ConnectedComponents.cpp.

alvar::LabelingCvSeq::~LabelingCvSeq ( )

Definition at line 67 of file ConnectedComponents.cpp.

Member Function Documentation

CvSeq * alvar::LabelingCvSeq::LabelImage ( IplImage *  image,
int  min_size,
bool  approx = false 
)
Examples:
SampleLabeling.cpp.

Definition at line 239 of file ConnectedComponents.cpp.

void alvar::LabelingCvSeq::LabelSquares ( IplImage *  image,
bool  visualize = false 
)
virtual

Labels image and filters blobs to obtain square-shaped objects from the scene.

Implements alvar::Labeling.

Examples:
SampleLabeling.cpp.

Definition at line 77 of file ConnectedComponents.cpp.

void alvar::LabelingCvSeq::SetOptions ( bool  _detect_pose_grayscale = false)

Definition at line 73 of file ConnectedComponents.cpp.

Member Data Documentation

int alvar::LabelingCvSeq::_min_area
protected

Definition at line 119 of file ConnectedComponents.h.

int alvar::LabelingCvSeq::_min_edge
protected

Definition at line 118 of file ConnectedComponents.h.

int alvar::LabelingCvSeq::_n_blobs
protected

Definition at line 117 of file ConnectedComponents.h.

bool alvar::LabelingCvSeq::detect_pose_grayscale
protected

Definition at line 120 of file ConnectedComponents.h.

CvMemStorage* alvar::LabelingCvSeq::storage
protected

Definition at line 122 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