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

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

#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 成员函数

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""cross" 其一的字符串状态,表示定位点类型
  • anchor"circle" 时,状态类型还具有
    • e,为数值状态,表示图像中测量的离心率

成员类型定义说明

◆ const_ptr

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

◆ ptr

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

成员函数说明

◆ clone()

feature::ptr rm::Anchor::clone ( )
inlineoverridevirtual
Python:
rm.Anchor.clone() -> <rm.Anchor object>

从另一个特征进行构造

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

实现了 rm::feature.

◆ from_string()

static AnchorType rm::Anchor::from_string ( std::string_view type)
static
Python:
rm.Anchor.from_string(str) -> type

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

函数调用图:

◆ make_feature()

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

Anchor 构造接口

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

◆ to_string()

static std::string_view rm::Anchor::to_string ( AnchorType type)
static
Python:
rm.Anchor.to_string(type) -> str

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

函数调用图:

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