45 float quadDecimate = 2.0f;
52 float quadSigma = 0.0f;
63 bool refineEdges =
true;
70 double decodeSharpening = 0.25;
89 int minClusterPixels = 5;
95 int maxNumMaxima = 10;
102 units::radian_t criticalAngle = 10_deg;
110 float maxLineFitMSE = 10.0f;
118 int minWhiteBlackDiff = 5;
124 bool deglitch =
false;
132 :
public std::span<AprilTagDetection const* const> {
133 struct private_init {};
143 rhs.m_impl =
nullptr;
149 void* m_impl =
nullptr;
157 : m_impl{rhs.m_impl},
158 m_families{
std::move(rhs.m_families)},
159 m_qtpCriticalAngle{rhs.m_qtpCriticalAngle} {
160 rhs.m_impl =
nullptr;
249 return Detect(width, height, width, buf);
254 void DestroyFamilies();
259 units::radian_t m_qtpCriticalAngle = 10_deg;
This file defines the StringMap class.
#define WPILIB_DLLEXPORT
Definition: SymbolExports.h:36
Array of detection results.
Definition: AprilTagDetector.h:132
~Results()
Definition: AprilTagDetector.h:139
Results & operator=(Results &&rhs)
Results(const Results &)=delete
Results(void *impl, const private_init &)
Results(Results &&rhs)
Definition: AprilTagDetector.h:142
Results & operator=(const Results &)=delete
An AprilTag detector engine.
Definition: AprilTagDetector.h:27
Results Detect(int width, int height, int stride, uint8_t *buf)
Detect tags from an 8-bit image.
Config GetConfig() const
Gets detector configuration.
Results Detect(int width, int height, uint8_t *buf)
Detect tags from an 8-bit image.
Definition: AprilTagDetector.h:248
AprilTagDetector(AprilTagDetector &&rhs)
Definition: AprilTagDetector.h:156
bool AddFamily(std::string_view fam, int bitsCorrected=2)
Adds a family of tags to be detected.
void RemoveFamily(std::string_view fam)
Removes a family of tags from the detector.
AprilTagDetector & operator=(AprilTagDetector &&rhs)
AprilTagDetector(const AprilTagDetector &)=delete
AprilTagDetector & operator=(const AprilTagDetector &)=delete
~AprilTagDetector()
Definition: AprilTagDetector.h:153
void SetConfig(const Config &config)
Sets detector configuration.
void ClearFamilies()
Unregister all families.
void SetQuadThresholdParameters(const QuadThresholdParameters ¶ms)
Sets quad threshold parameters.
QuadThresholdParameters GetQuadThresholdParameters() const
Gets quad threshold parameters.
basic_string_view< char > string_view
Definition: core.h:501
Definition: AprilTagPoseEstimator.h:15
constexpr const char * name(const T &)
Detector configuration.
Definition: AprilTagDetector.h:30
bool operator==(const Config &) const =default
Quad threshold parameters.
Definition: AprilTagDetector.h:82
bool operator==(const QuadThresholdParameters &) const =default