拾伍[15],带校正描述匹配模板,函数CreateCalibDescriptorModel/FindCalibDescriptorModel

2023-12-20 20:59:02

函数CreateCalibDescriptorModel

函数功能

创建一个校正透视描述符匹配模板

C++形式

LIntExport void CreateCalibDescriptorModel(
const HObject& Template, 
const HTuple& CamParam, 
const HTuple& ReferencePose, 
const HTuple& DetectorType, 
const HTuple& DetectorParamName, 
const HTuple& DetectorParamValue, 
const HTuple& DescriptorParamName, 
const HTuple& DescriptorParamValue, 
onst HTuple& Seed, 
HTuple* ModelID);

//参数1:输入单通道图像
//参数2:相机标定参数
//参数3:相机标定姿态
//参数4:匹配类型,默认"lepetit",参考值,"lepetit","harris","harris_binomial"
//参数5:匹配参数类型,默认"",
//参数6:匹配参数对应的值,参考值0.08,1,1.2,3,15,30,1000,"off","on"
//参数7:描述符参数名称
//参数8:描述符参数对应的值
//参数9:随机种子数量
//参数10:模板ID

//参数5参考值:
//"alpha"
//"check_neighbor"
//"mask_size_bor"
//"mask_size_smooth"
//"min_check_neighbor_diff"
//"min_score"
//"raduis"
//"sigma_grad"
//"sigma_smooth"
//"subpix"
//"threshold"

//参数7参考值,参数8参考值
"depth",蕨形深度,值5-11
"number_fems",蕨形数量,默认30,值5-50
"patch_size",边长大小,默认17,值15-33
"tilt",倾斜度,"on"开启投射,"off"关闭投射
"min_rot",最小旋转角度,默认-180,值-180-0
"max_rot",最大旋转角度,默认180,值0-180
"min_scale",最小缩放比例,默认0.5,值0.1-1
"max_scale",最大缩放比例,默认1.4,值1-"inf"

C#形式

public static void CreateCalibDescriptorModel(
HObject template, 
HTuple camParam, 
HTuple referencePose, 
HTuple detectorType, 
HTuple detectorParamName, 
HTuple detectorParamValue, 
HTuple descriptorParamName, 
HTuple descriptorParamValue, 
HTuple seed, 
out HTuple modelID);

函数FindCalibDescriptorModel

函数功能

寻找最佳校正透视描述符模板

C++形式

LIntExport void FindUncalibDescriptorModel(
const HObject& Image, 
const HTuple& ModelID, 
const HTuple& DetectorParamName, 
const HTuple& DetectorParamValue, 
const HTuple& DescriptorParamName, 
const HTuple& DescriptorParamValue, 
const HTuple& MinScore, 
const HTuple& NumMatches, 
const HTuple& ScoreType, 
HTuple* HomMat2D, 
HTuple* Score);

//参数1:输入图像
//参数2:模板ID
//参数3:匹配参数类型,默认"",
//参数4:匹配参数对应的值,参考值0.08,1,1.2,3,15,30,1000,"off","on"
//参数5:描述符参数名称,默认"",参考值,"min_score_descr","guided_matching"
//参数6:描述符参数对应的值
//参数7:最小得分,默认0.2,参考值>=0 && <=1
//参数1:匹配数量,默认1,参考值>1
//参数1:得分类型,默认"num_points",参考值"num_points","inlier_ratio"
//参数1:输出结果二维放射变换
//参数1:输出结果得分

C#形式

public static void FindCalibDescriptorModel(
HObject image, 
HTuple modelID, 
HTuple detectorParamName, 
HTuple detectorParamValue, 
HTuple descriptorParamName, 
HTuple descriptorParamValue, 
HTuple minScore, 
HTuple numMatches, 
HTuple camParam, 
HTuple scoreType, 
out HTuple pose, 
out HTuple score);

文章来源:https://blog.csdn.net/FairyTailQ/article/details/135075735
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。