RMVL  1.4.0-dev
Robotic Manipulation and Vision Library
载入中...
搜索中...
未找到
rm::feature类 参考abstract

图像中的轮廓特征 更多...

#include <rmvl/feature/feature.h>

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

Public 类型

using ptr = std::shared_ptr<feature>
 
using const_ptr = std::shared_ptr<const feature>
 

Public 成员函数

virtual ptr clone ()=0
 从另一个特征进行构造
 
float getArea () const
 获取特征面积
 
const cv::Point2f & getCenter () const
 获取特征中心点
 
float getWidth () const
 获取特征宽度
 
float getHeight () const
 获取特征高度
 
float getAngle () const
 获取特征角度
 
const auto & getCorners () const
 获取特征角点
 
const RMStatusgetType () const
 获取状态信息
 

Protected 属性

float _width {}
 特征宽度
 
float _height {}
 特征高度
 
float _angle {}
 特征角度
 
cv::Point2f _center
 特征中心点
 
std::vector< cv::Point2f > _corners
 特征角点
 
rm::RMStatus _type
 状态类型信息
 

详细描述

图像中的轮廓特征

成员类型定义说明

◆ const_ptr

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

◆ ptr

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

成员函数说明

◆ clone()

virtual ptr rm::feature::clone ( )
pure virtual

从另一个特征进行构造

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

rm::DefaultFeature, rm::LightBlob, rm::Pilot, rm::RuneCenter, rm::RuneTarget , 以及 rm::Tag 内被实现.

◆ getAngle()

float rm::feature::getAngle ( ) const
inline

获取特征角度

◆ getArea()

float rm::feature::getArea ( ) const
inline

获取特征面积

◆ getCenter()

const cv::Point2f & rm::feature::getCenter ( ) const
inline

获取特征中心点

◆ getCorners()

const auto & rm::feature::getCorners ( ) const
inline

获取特征角点

◆ getHeight()

float rm::feature::getHeight ( ) const
inline

获取特征高度

◆ getType()

const RMStatus & rm::feature::getType ( ) const
inline

获取状态信息

◆ getWidth()

float rm::feature::getWidth ( ) const
inline

获取特征宽度

类成员变量说明

◆ _angle

float rm::feature::_angle {}
protected

特征角度

◆ _center

cv::Point2f rm::feature::_center
protected

特征中心点

◆ _corners

std::vector<cv::Point2f> rm::feature::_corners
protected

特征角点

◆ _height

float rm::feature::_height {}
protected

特征高度

◆ _type

rm::RMStatus rm::feature::_type
protected

状态类型信息

◆ _width

float rm::feature::_width {}
protected

特征宽度


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