RMVL  2.2.0
Robotic Manipulation and Vision Library
载入中...
搜索中...
未找到
rm::Anchor类 参考final

定位点特征,具有以下状态类型 更多...

#include <rmvl/feature/anchor.h>

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

Public 类型

using ptr = std::shared_ptr<Anchor>
 
using const_ptr = std::shared_ptr<const Anchor>
 
- Public 类型 继承自 rm::feature
using ptr = std::shared_ptr<feature>
 
using const_ptr = std::shared_ptr<const feature>
 

Public 成员函数

 Anchor ()=default
 
feature::ptr clone () override
 从另一个特征进行构造
 
- Public 成员函数 继承自 rm::feature
float area () const
 获取特征面积
 
const cv::Point2f & center () const
 获取特征中心点
 
float width () const
 获取特征宽度
 
float height () const
 获取特征高度
 
float angle () const
 获取特征角度
 
const std::vector< cv::Point2f > & corners () const
 获取特征角点
 
const StateInfostate () const
 获取特征状态
 
StateInfostate ()
 获取特征状态
 

静态 Public 成员函数

static ptr make_feature (const std::vector< cv::Point > &contour, AnchorType type)
 Anchor 构造接口
 
static std::string_view to_string (AnchorType type)
 获取定位点类型的字符串表示
 
static AnchorType from_string (std::string_view type)
 从字符串类型获取定位点类型
 

额外继承的成员函数

- Protected 属性 继承自 rm::feature
float _width {}
 特征宽度
 
float _height {}
 特征高度
 
float _angle {}
 特征角度
 
cv::Point2f _center
 特征中心点
 
std::vector< cv::Point2f > _corners
 特征角点
 
rm::StateInfo _state
 特征状态
 

详细描述

定位点特征,具有以下状态类型

  • "anchor": "circle" 或 "square" 或 "triangle" 或 "cross" 均为字符串状态,标识定位点类型
  • 当 anchor 为 "circle" 时,具有
    • "e": <number of eccentricity> 为数值状态,表示图像中测量的离心率

成员类型定义说明

◆ const_ptr

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

◆ ptr

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

构造及析构函数说明

◆ Anchor()

rm::Anchor::Anchor ( )
default

成员函数说明

◆ clone()

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

从另一个特征进行构造

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

实现了 rm::feature.

◆ from_string()

static AnchorType rm::Anchor::from_string ( std::string_view type)
static

从字符串类型获取定位点类型

函数调用图:

◆ make_feature()

static ptr rm::Anchor::make_feature ( const std::vector< cv::Point > & contour,
AnchorType type )
static

Anchor 构造接口

参数
[in]contour定位点轮廓
[in]type定位点类型
返回
Anchor 共享指针

◆ to_string()

static std::string_view rm::Anchor::to_string ( AnchorType type)
static

获取定位点类型的字符串表示

函数调用图:

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