![]() |
RMVL
1.1.1
RoboMaster Vision Library
|
AprilTag 视觉标签特征类 更多...
#include <rmvl/feature/tag.h>
Public 类型 | |
| using | ptr = std::shared_ptr< Tag > |
| using | const_ptr = std::shared_ptr< const Tag > |
Public 类型 继承自 rm::feature | |
| using | ptr = std::shared_ptr< feature > |
| using | const_ptr = std::shared_ptr< const feature > |
Public 成员函数 | |
| Tag (const std::vector< cv::Point2f > &corners, TagType type) | |
Public 成员函数 继承自 rm::feature | |
| virtual | ~feature ()=0 |
| float | getArea () const |
| 获取特征面积 更多... | |
| const cv::Point2f & | getCenter () const |
| 获取特征中心点 更多... | |
| float | getWidth () const |
| 获取特征宽度 更多... | |
| float | getHeight () const |
| 获取特征高度 更多... | |
| float | getAngle () const |
| 获取特征角度 更多... | |
| const auto & | getCorners () const |
| 获取特征角点 更多... | |
| const RMStatus & | getType () const |
| 获取状态信息 更多... | |
静态 Public 成员函数 | |
| static Tag::ptr | make_feature (const std::vector< cv::Point2f > &corners, TagType type) |
| 构造 Tag 对象 更多... | |
| static Tag::ptr | cast (feature::ptr p_feature) |
| 动态类型转换 更多... | |
| static Tag::const_ptr | cast (feature::const_ptr p_feature) |
| 动态类型转换 更多... | |
额外继承的成员函数 | |
Protected 属性 继承自 rm::feature | |
| float | _width {} |
| 特征宽度 更多... | |
| float | _height {} |
| 特征高度 更多... | |
| float | _angle {} |
| 特征角度 更多... | |
| cv::Point2f | _center |
| 特征中心点 更多... | |
| std::vector< cv::Point2f > | _corners |
| 特征角点 更多... | |
| rm::RMStatus | _type |
| 状态类型信息 更多... | |
AprilTag 视觉标签特征类
| using rm::Tag::const_ptr = std::shared_ptr<const Tag> |
| using rm::Tag::ptr = std::shared_ptr<Tag> |
| rm::Tag::Tag | ( | const std::vector< cv::Point2f > & | corners, |
| TagType | type | ||
| ) |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
构造 Tag 对象
| [in] | corners | 角点列表(必须包含 4 个角点,否则构造失败) |
| [in] | type | AprilTag 视觉标签类型,可参考 rm::TagType |
nullptr
1.9.1