RMVL  2.1.0-dev
Robotic Manipulation and Vision Library
载入中...
搜索中...
未找到
rm::para::RuneDetectorParam类 参考

RuneDetectorParam 参数模块 更多...

#include <rmvlpara/detector/rune_detector.h>

rm::para::RuneDetectorParam 的协作图:

Public 成员函数

 RuneDetectorParam ()=default
 
bool read (const std::string &path)
 从指定 YAML 文件中加载,并读取至 RuneDetectorParam
 
bool write (const std::string &path) const
 RuneDetectorParam 的数据写入指定的 YAML 文件中
 
bool load (const std::string &path)
 从指定 YAML 文件中加载 RuneDetectorParam
 

Public 属性

int GRAY_THRESHOLD_RED = 80
 二值化R-B阈值
 
int GRAY_THRESHOLD_BLUE = 80
 二值化B-R阈值
 
double MIN_CONTOUR_AREA = 10
 能够参与神符特征匹配的最小面积
 
double MAX_CONTOUR_AREA = 3500
 能够参与神符特征匹配的最大面积
 
double BIG_TARGET_AREA = 1000
 判断为靶心的面积阈值
 
double CONCENTRICITY_RATIO = 0.08
 父子轮廓同心度与最大轮廓的比值
 

详细描述

RuneDetectorParam 参数模块

构造及析构函数说明

◆ RuneDetectorParam()

rm::para::RuneDetectorParam::RuneDetectorParam ( )
default

成员函数说明

◆ load()

bool rm::para::RuneDetectorParam::load ( const std::string & path)
inline

从指定 YAML 文件中加载 RuneDetectorParam

弃用
请使用 read 方法

◆ read()

bool rm::para::RuneDetectorParam::read ( const std::string & path)

从指定 YAML 文件中加载,并读取至 RuneDetectorParam

注解
YAML 文件的后缀允许是 *.yml*.yaml
参数
[in]path参数路径
返回
是否读取成功

◆ write()

bool rm::para::RuneDetectorParam::write ( const std::string & path) const

RuneDetectorParam 的数据写入指定的 YAML 文件中

注解
YAML 文件的后缀允许是 *.yml*.yaml
参数
[in]path参数路径
返回
是否写入成功

类成员变量说明

◆ BIG_TARGET_AREA

double rm::para::RuneDetectorParam::BIG_TARGET_AREA = 1000

判断为靶心的面积阈值

注解
默认值:1000

◆ CONCENTRICITY_RATIO

double rm::para::RuneDetectorParam::CONCENTRICITY_RATIO = 0.08

父子轮廓同心度与最大轮廓的比值

注解
默认值:0.08

◆ GRAY_THRESHOLD_BLUE

int rm::para::RuneDetectorParam::GRAY_THRESHOLD_BLUE = 80

二值化B-R阈值

注解
默认值:80

◆ GRAY_THRESHOLD_RED

int rm::para::RuneDetectorParam::GRAY_THRESHOLD_RED = 80

二值化R-B阈值

注解
默认值:80

◆ MAX_CONTOUR_AREA

double rm::para::RuneDetectorParam::MAX_CONTOUR_AREA = 3500

能够参与神符特征匹配的最大面积

注解
默认值:3500

◆ MIN_CONTOUR_AREA

double rm::para::RuneDetectorParam::MIN_CONTOUR_AREA = 10

能够参与神符特征匹配的最小面积

注解
默认值:10

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