😊😊😊欢迎来到本博客😊😊😊
🌟🌟🌟 Halcon算子太多,学习查找都没有系统的学习查找路径,本专栏主要分享Halcon各类算子含义及用法,有时间会更新具体案例。
😊😊😊 具体食用方式:可以点击本专栏【Halcon算子快速查找】–>搜索你要查询的算子名称;或者点击Halcon算子汇总博客,即可食用。
🎁🎁🎁支持:如果觉得博主的文章还不错或者您用得到的话,可以悄悄关注一下博主哈,如果三连收藏支持就更好啦!这就是给予我最大的支持!😙😙😙
学习目标
- add_metrology_object_circle_measure()
学习内容
算子简介
函数名 | 解释 |
---|---|
add_metrology_object_circle_measure() | 添加圆形测量模型 |
1、add_metrology_object_circle_measure()
add_metrology_object_circle_measure( : : MetrologyHandle, Row, Column, Radius, MeasureLength1, MeasureLength2, MeasureSigma, MeasureThreshold, GenParamName, GenParamValue : Index)
函数说明: 添加圆形测量模型。
函数参数:
MeasureHandle:输入测量模型的句柄;
** Row**:输入圆心的行;
Column:输入圆心的列;
Radius:输入圆的半径;
MeasureLength1:输入垂直于边界的测量区域的一半长度;默认值:20,参考值:10,20,30;
MeasureLength2:输入与边界相切的测量区域的一半长度;默认值:5,参考值:3,5,10;
MeasureSigma:输入用于平滑的高斯函数的sigma;默认值:1,参考值:0.4,0.6,0.8,1.0,1.5,2.0,3.0,4.0,5.0,7.0,10.0;
MeasureThreshold:输入测量阈值;默认值:30,参考值:5.0, 10.0, 20.0, 30.0, 40.0, 50.0, 60.0, 70.0, 90.0, 110.0;
GenParamName:输入参数名称;参考: ‘distance_threshold’, ‘end_phi’, ‘instances_outside_measure_regions’, ‘max_num_iterations’, ‘measure_distance’, ‘measure_interpolation’, ‘measure_select’, ‘measure_transition’, ‘min_score’, ‘num_instances’, ‘num_measures’, ‘point_order’, ‘rand_seed’, ‘start_phi’;
**GenParamValue **:输入参数值;参考:1, 2, 3, 4, 5, 10, 20, ‘all’, ‘true’, ‘false’, ‘first’, ‘last’, ‘positive’, ‘negative’, ‘uniform’, ‘nearest_neighbor’, ‘bilinear’, ‘bicubic’;
Index:输出创建测量对象的索引值;
案例
read_image (Image, 'rings_and_nuts')
create_metrology_model (MetrologyHandle)
get_image_size (Image, Width, Height)
set_metrology_model_image_size (MetrologyHandle, Width, Height)
add_metrology_object_circle_measure (MetrologyHandle, 120, 130, 35, 10, 2, 1, 30, ['measure_distance'], [40], Index)
apply_metrology_model (Image, MetrologyHandle)
get_metrology_object_result (MetrologyHandle, Index, 'all', 'result_type', 'all_param', Circle)
get_metrology_object_result_contour (Contour, MetrologyHandle, Index, 'all', 1.5)
clear_metrology_model (MetrologyHandle)
Halcon例程
apply_metrology_model.hdev 使用计量模型测量圆形和矩形垫片
【2D测量 Metrology部分】 待更新算子
- create_metrology_model()
- set_metrology_model_image_size()
- add_metrology_object_circle_measure()
- add_metrology_object_ellipse_measure()
- add_metrology_object_generic()
- add_metrology_object_line_measure()
- add_metrology_object_rectangle2_measure()
- set_metrology_model_param()
- set_metrology_object_fuzzy_param()
- set_metrology_object_param()
- align_metrology_model()
- apply_metrology_model()
- get_metrology_model_param()
- get_metrology_object_fuzzy_param()
- get_metrology_object_indices()
- get_metrology_object_measures()
- get_metrology_object_model_contour()
- get_metrology_object_num_instances()
- get_metrology_object_param()
- get_metrology_object_result()
- get_metrology_object_result_contour()
- clear_metrology_model()
- clear_metrology_object()
- copy_metrology_model()
- deserialize_metrology_model()
- read_metrology_model()
- reset_metrology_object_fuzzy_param()
- reset_metrology_object_param()
- serialize_metrology_model()
- write_metrology_model()
汇总
本专栏博客汇总:Halcon算子汇总
🚶🚶🚶今天的文章就到这里啦~
喜欢的话,点赞👍、收藏⭐️、关注💟哦 ~