include
aruco
markerlabeler.h
Go to the documentation of this file.
1
17
#ifndef _aruco_MarkerLabeler_
18
#define _aruco_MarkerLabeler_
19
20
#include "
aruco_export.h
"
21
#include "
dictionary.h
"
22
#include <opencv2/core/core.hpp>
23
24
namespace
aruco
25
{
31
class
Marker;
32
class
ARUCO_EXPORT
MarkerLabeler
33
{
34
public
:
44
static
cv::Ptr<MarkerLabeler> create(
Dictionary::DICT_TYPES
dict_type,
45
float
error_correction_rate = 0);
46
58
static
cv::Ptr<MarkerLabeler> create(std::string detector, std::string params =
""
);
59
69
virtual
bool
detect(
const
cv::Mat& in,
int
& marker_id,
int
& nRotations,
70
std::string& additionalInfo) = 0;
75
virtual
int
getBestInputSize
()
76
{
77
return
-1;
78
}
79
86
virtual
int
getNSubdivisions
()
const
87
{
88
return
-1;
89
}
90
91
// returns an string that describes the labeler and can be used to create it
92
virtual
std::string
getName
()
const
= 0;
93
virtual
~MarkerLabeler
()
94
{
95
}
96
};
97
};
// namespace aruco
98
#endif
aruco::MarkerLabeler::~MarkerLabeler
virtual ~MarkerLabeler()
Definition:
markerlabeler.h:93
getName
ROSCONSOLE_CONSOLE_IMPL_DECL std::string getName(void *handle)
aruco::MarkerLabeler::getNSubdivisions
virtual int getNSubdivisions() const
getNSubdivisions returns the number of subdivisions in each axis that the iamge will be subject to....
Definition:
markerlabeler.h:86
aruco::MarkerLabeler
Definition:
markerlabeler.h:32
aruco::MarkerLabeler::getBestInputSize
virtual int getBestInputSize()
getBestInputSize if desired, you can set the desired input size to the detect function
Definition:
markerlabeler.h:75
aruco_export.h
aruco::Dictionary::DICT_TYPES
DICT_TYPES
Definition:
dictionary.h:45
dictionary.h
ARUCO_EXPORT
#define ARUCO_EXPORT
Definition:
aruco_export.h:30
aruco
Definition:
cameraparameters.h:24
aruco
Author(s): Rafael Muñoz Salinas
, Bence Magyar
autogenerated on Sat Sep 23 2023 02:26:45