Public Member Functions | Private Member Functions | Private Attributes | List of all members
ChromaticMask Class Reference

#include <chromaticmask.h>

Public Member Functions

void calculateGridImage (const aruco::Board &board)
 
 ChromaticMask ()
 
void classify (const cv::Mat &in, const aruco::Board &board)
 
void classify2 (const cv::Mat &in, const aruco::Board &board)
 
cv::Mat getCellMap ()
 
cv::Mat getMask ()
 
bool isValid ()
 
void resetMask ()
 
void setParams (unsigned int mc, unsigned int nc, double threshProb, aruco::CameraParameters CP, aruco::BoardConfiguration BC, vector< cv::Point3f > corners)
 
void setParams (unsigned int mc, unsigned int nc, double threshProb, aruco::CameraParameters CP, aruco::BoardConfiguration BC, float markersize=-1.)
 
void train (const cv::Mat &in, const aruco::Board &board)
 
void update (const cv::Mat &in)
 

Private Member Functions

double getDistance (cv::Point2d pixel, unsigned int classifier)
 

Private Attributes

aruco::BoardDetector _BD
 
cv::Mat _canonicalPos
 
vector< vector< size_t > > _cell_neighbours
 
vector< cv::Point2f > _cellCenters
 
cv::Mat _cellMap
 
const float _cellSize
 
vector< cv::Point2f > _centers
 
vector< EMClassifier_classifiers
 
aruco::CameraParameters _CP
 
vector< cv::Point2f > _imgCornerPoints
 
bool _isValid
 
cv::Mat _mask
 
cv::Mat _maskAux
 
unsigned int _mc
 
unsigned int _nc
 
vector< cv::Point3f > _objCornerPoints
 
cv::Mat _perpTrans
 
vector< cv::Point2f > _pixelsVector
 
double _threshProb
 

Detailed Description

Definition at line 72 of file chromaticmask.h.

Constructor & Destructor Documentation

◆ ChromaticMask()

ChromaticMask::ChromaticMask ( )
inline

Definition at line 74 of file chromaticmask.h.

Member Function Documentation

◆ calculateGridImage()

void ChromaticMask::calculateGridImage ( const aruco::Board board)

Definition at line 225 of file chromaticmask.cpp.

◆ classify()

void ChromaticMask::classify ( const cv::Mat &  in,
const aruco::Board board 
)

Definition at line 323 of file chromaticmask.cpp.

◆ classify2()

void ChromaticMask::classify2 ( const cv::Mat &  in,
const aruco::Board board 
)

Definition at line 377 of file chromaticmask.cpp.

◆ getCellMap()

cv::Mat ChromaticMask::getCellMap ( )
inline

Definition at line 82 of file chromaticmask.h.

◆ getDistance()

double ChromaticMask::getDistance ( cv::Point2d  pixel,
unsigned int  classifier 
)
inlineprivate

Definition at line 94 of file chromaticmask.h.

◆ getMask()

cv::Mat ChromaticMask::getMask ( )
inline

Definition at line 83 of file chromaticmask.h.

◆ isValid()

bool ChromaticMask::isValid ( )
inline

Definition at line 90 of file chromaticmask.h.

◆ resetMask()

void ChromaticMask::resetMask ( )

Definition at line 469 of file chromaticmask.cpp.

◆ setParams() [1/2]

void ChromaticMask::setParams ( unsigned int  mc,
unsigned int  nc,
double  threshProb,
aruco::CameraParameters  CP,
aruco::BoardConfiguration  BC,
vector< cv::Point3f >  corners 
)

Definition at line 170 of file chromaticmask.cpp.

◆ setParams() [2/2]

void ChromaticMask::setParams ( unsigned int  mc,
unsigned int  nc,
double  threshProb,
aruco::CameraParameters  CP,
aruco::BoardConfiguration  BC,
float  markersize = -1. 
)

Definition at line 124 of file chromaticmask.cpp.

◆ train()

void ChromaticMask::train ( const cv::Mat &  in,
const aruco::Board board 
)

Definition at line 275 of file chromaticmask.cpp.

◆ update()

void ChromaticMask::update ( const cv::Mat &  in)

Definition at line 445 of file chromaticmask.cpp.

Member Data Documentation

◆ _BD

aruco::BoardDetector ChromaticMask::_BD
private

Definition at line 111 of file chromaticmask.h.

◆ _canonicalPos

cv::Mat ChromaticMask::_canonicalPos
private

Definition at line 113 of file chromaticmask.h.

◆ _cell_neighbours

vector< vector< size_t > > ChromaticMask::_cell_neighbours
private

Definition at line 106 of file chromaticmask.h.

◆ _cellCenters

vector< cv::Point2f > ChromaticMask::_cellCenters
private

Definition at line 105 of file chromaticmask.h.

◆ _cellMap

cv::Mat ChromaticMask::_cellMap
private

Definition at line 113 of file chromaticmask.h.

◆ _cellSize

const float ChromaticMask::_cellSize
private

Definition at line 107 of file chromaticmask.h.

◆ _centers

vector< cv::Point2f > ChromaticMask::_centers
private

Definition at line 103 of file chromaticmask.h.

◆ _classifiers

vector< EMClassifier > ChromaticMask::_classifiers
private

Definition at line 102 of file chromaticmask.h.

◆ _CP

aruco::CameraParameters ChromaticMask::_CP
private

Definition at line 112 of file chromaticmask.h.

◆ _imgCornerPoints

vector< cv::Point2f > ChromaticMask::_imgCornerPoints
private

Definition at line 99 of file chromaticmask.h.

◆ _isValid

bool ChromaticMask::_isValid
private

Definition at line 114 of file chromaticmask.h.

◆ _mask

cv::Mat ChromaticMask::_mask
private

Definition at line 113 of file chromaticmask.h.

◆ _maskAux

cv::Mat ChromaticMask::_maskAux
private

Definition at line 113 of file chromaticmask.h.

◆ _mc

unsigned int ChromaticMask::_mc
private

Definition at line 110 of file chromaticmask.h.

◆ _nc

unsigned int ChromaticMask::_nc
private

Definition at line 110 of file chromaticmask.h.

◆ _objCornerPoints

vector< cv::Point3f > ChromaticMask::_objCornerPoints
private

Definition at line 100 of file chromaticmask.h.

◆ _perpTrans

cv::Mat ChromaticMask::_perpTrans
private

Definition at line 101 of file chromaticmask.h.

◆ _pixelsVector

vector< cv::Point2f > ChromaticMask::_pixelsVector
private

Definition at line 104 of file chromaticmask.h.

◆ _threshProb

double ChromaticMask::_threshProb
private

Definition at line 115 of file chromaticmask.h.


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


asr_aruco_marker_recognition
Author(s): Allgeyer Tobias, Meißner Pascal, Qattan Mohamad
autogenerated on Mon Feb 28 2022 21:41:30