RMVL  2.1.0-dev
Robotic Manipulation and Vision Library
载入中...
搜索中...
未找到

AprilTag 视觉标签特征类 更多...

#include <rmvl/feature/tag.h>

类 rm::Tag 继承关系图:
rm::Tag 的协作图:

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::array< cv::Point2f, 4 > &corners, TagType type)
 
feature::ptr clone () override
 从另一个特征进行构造
 
- Public 成员函数 继承自 rm::feature
float getArea () const
 获取特征面积
 
const cv::Point2f & getCenter () const
 获取特征中心点
 
float getWidth () const
 获取特征宽度
 
float getHeight () const
 获取特征高度
 
float getAngle () const
 获取特征角度
 
const auto & getCorners () const
 获取特征角点
 
const RMStatusgetType () const
 获取状态信息
 

静态 Public 成员函数

static ptr make_feature (const std::array< cv::Point2f, 4 > &corners, TagType type)
 构造 Tag 对象
 
static ptr cast (feature::ptr p_feature)
 动态类型转换
 
static 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 视觉标签特征类

成员类型定义说明

◆ const_ptr

using rm::Tag::const_ptr = std::shared_ptr<const Tag>

◆ ptr

using rm::Tag::ptr = std::shared_ptr<Tag>

构造及析构函数说明

◆ Tag()

rm::Tag::Tag ( const std::array< cv::Point2f, 4 > & corners,
TagType type )
警告
不直接使用构造函数

成员函数说明

◆ cast() [1/2]

static const_ptr rm::Tag::cast ( feature::const_ptr p_feature)
inlinestatic

动态类型转换

参数
[in]p_featurefeature::const_ptr 抽象指针
返回
派生对象指针

◆ cast() [2/2]

static ptr rm::Tag::cast ( feature::ptr p_feature)
inlinestatic

动态类型转换

参数
[in]p_featurefeature::ptr 抽象指针
返回
派生对象指针

◆ clone()

feature::ptr rm::Tag::clone ( )
inlineoverridevirtual

从另一个特征进行构造

返回
指向新特征的共享指针

实现了 rm::feature.

◆ make_feature()

static ptr rm::Tag::make_feature ( const std::array< cv::Point2f, 4 > & corners,
TagType type )
inlinestatic

构造 Tag 对象

参数
[in]corners角点列表
[in]typeAprilTag 视觉标签类型,可参考 rm::TagType
返回
构造成功返回 Tag 共享指针,否则返回 nullptr

该类的文档由以下文件生成: