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

神符靶心特征 更多...

#include <rmvl/feature/rune_target.h>

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

Public 类型

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

Public 成员函数

 RuneTarget ()=default
 
 RuneTarget (const std::vector< cv::Point > &, const cv::RotatedRect &, bool is_active)
 
 RuneTarget (const cv::Point &center, bool is_active)
 
feature::ptr clone () override
 从另一个特征进行构造
 
float getRatio () const
 获取长宽比
 
bool isActive () const
 是否激活标志位
 
float getRadius () const
 获取半径
 
const std::vector< cv::Point > & getContours ()
 获取轮廓
 
- 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 std::shared_ptr< RuneTargetmake_feature (const std::vector< cv::Point > &contour, bool is_active)
 使用轮廓和层次结构构造 RuneTarget 的构造接口
 
static std::shared_ptr< RuneTargetmake_feature (const cv::Point &center, bool is_active)
 使用特征中心点构造 RuneTarget 的构造接口
 
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
 状态类型信息
 

详细描述

神符靶心特征

成员类型定义说明

◆ const_ptr

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

◆ ptr

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

构造及析构函数说明

◆ RuneTarget() [1/3]

rm::RuneTarget::RuneTarget ( )
default

◆ RuneTarget() [2/3]

rm::RuneTarget::RuneTarget ( const std::vector< cv::Point > & ,
const cv::RotatedRect & ,
bool is_active )

◆ RuneTarget() [3/3]

rm::RuneTarget::RuneTarget ( const cv::Point & center,
bool is_active )

成员函数说明

◆ cast() [1/2]

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

动态类型转换

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

◆ cast() [2/2]

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

动态类型转换

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

◆ clone()

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

从另一个特征进行构造

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

实现了 rm::feature.

◆ getContours()

const std::vector< cv::Point > & rm::RuneTarget::getContours ( )
inline

获取轮廓

◆ getRadius()

float rm::RuneTarget::getRadius ( ) const
inline

获取半径

◆ getRatio()

float rm::RuneTarget::getRatio ( ) const
inline

获取长宽比

◆ isActive()

bool rm::RuneTarget::isActive ( ) const
inline

是否激活标志位

◆ make_feature() [1/2]

static std::shared_ptr< RuneTarget > rm::RuneTarget::make_feature ( const cv::Point & center,
bool is_active )
static

使用特征中心点构造 RuneTarget 的构造接口

参数
[in]center特征中心点
[in]is_active是否激活?
返回
如果成功,返回 RuneTarget 的共享指针,否则返回 nullptr

◆ make_feature() [2/2]

static std::shared_ptr< RuneTarget > rm::RuneTarget::make_feature ( const std::vector< cv::Point > & contour,
bool is_active )
static

使用轮廓和层次结构构造 RuneTarget 的构造接口

参数
[in]contour轮廓
[in]is_active是否激活?
返回
如果成功,返回 RuneTarget 的共享指针,否则返回 nullptr

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