Resurgence (PY2022)
Codebase for the Husky Robotics 2021-2022 rover Resurgence
Loading...
Searching...
No Matches
MarkerPattern.h
1#pragma once
2
3#include <cstdint>
4#include <memory>
5
6#include <opencv2/core.hpp>
7
8namespace AR {
9
14
29private:
33 uint8_t data_region_size;
39 uint8_t border_size;
44 int id;
48 cv::Ptr<cv::Mat> data_bits;
49
50public:
61 MarkerPattern(uint8_t data_region_size, uint8_t border_size, cv::Mat bits, int id);
62 bool empty() const;
63 uint8_t getDataRegionSize() const;
64 uint8_t getBorderSize() const;
65 const cv::Ptr<cv::Mat> getDataBits() const;
66 int getId() const;
67 bool operator==(const MarkerPattern& other) const;
68};
69
71
72} // namespace AR
MarkerPattern()
Creates an empty marker, with a data region size, border size, and ID of 0, and an empty matrix for t...
Definition MarkerPattern.cpp:25
std::shared_ptr< _Tp > Ptr
::uint8_t uint8_t