NASA Astrobee Robot Software  0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
marker_tracking::Labeling Class Referenceabstract

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

#include <labelling_method.h>

Inheritance diagram for marker_tracking::Labeling:
Inheritance graph

Public Member Functions

 Labeling (camera::CameraParameters const &cam)
 
virtual ~Labeling ()
 
virtual void LabelSquares (std::shared_ptr< cv::Mat > image)=0
 Labels image and filters blobs to obtain square-shaped objects from the scene. More...
 
bool CheckBorder (std::vector< cv::Point > contour, int width, int height)
 
void SetThreshParams (int param1, int param2)
 

Public Attributes

std::vector< std::vector< alvar::PointDouble > > blob_corners
 Vector of 4-length vectors where the corners of detected blobs are stored. More...
 
 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
 

Protected Attributes

std::shared_ptr< cv::Mat > bw_
 Pointer to binary image that is then labeled. More...
 
camera::CameraParameters cam_
 
int thresh_param1_
 
int thresh_param2_
 

Detailed Description

Base class for labeling connected components from binary image.

Constructor & Destructor Documentation

◆ Labeling()

marker_tracking::Labeling::Labeling ( camera::CameraParameters const &  cam)
explicit

Constructor

◆ ~Labeling()

marker_tracking::Labeling::~Labeling ( )
virtual

Destructor

Member Function Documentation

◆ CheckBorder()

bool marker_tracking::Labeling::CheckBorder ( std::vector< cv::Point >  contour,
int  width,
int  height 
)

◆ LabelSquares()

virtual void marker_tracking::Labeling::LabelSquares ( std::shared_ptr< cv::Mat >  image)
pure virtual

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

Implemented in marker_tracking::LabelingCvSeq.

◆ SetThreshParams()

void marker_tracking::Labeling::SetThreshParams ( int  param1,
int  param2 
)

Member Data Documentation

◆ blob_corners

std::vector<std::vector<alvar::PointDouble> > marker_tracking::Labeling::blob_corners

Vector of 4-length vectors where the corners of detected blobs are stored.

◆ bw_

std::shared_ptr<cv::Mat> marker_tracking::Labeling::bw_
protected

Pointer to binary image that is then labeled.

◆ cam_

camera::CameraParameters marker_tracking::Labeling::cam_
protected

◆ EIGEN_MAKE_ALIGNED_OPERATOR_NEW

marker_tracking::Labeling::EIGEN_MAKE_ALIGNED_OPERATOR_NEW

◆ thresh_param1_

int marker_tracking::Labeling::thresh_param1_
protected

◆ thresh_param2_

int marker_tracking::Labeling::thresh_param2_
protected

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