拾陆[16],不带校正描述匹配模板,函数CreateUncalibDescriptorModel/FindUncalibDescriptorModel

函数CreateUncalibDescriptorModel

函数功能

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

C++形式

LIntExport void CreateUncalibDescriptorModel(
const HObject& Template, 
const HTuple& DetectorType, 
const HTuple& DetectorParamName, 
const HTuple& DetectorParamValue, 
const HTuple& DescriptorParamName, 
const HTuple& DescriptorParamValue, 
const HTuple& Seed, 
HTuple* ModelID);

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

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

//参数5参考值,参数6参考值
"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 CreateUncalibDescriptorModel(
HObject template, 
HTuple detectorType, 
HTuple detectorParamName, 
HTuple detectorParamValue, 
HTuple descriptorParamName, 
HTuple descriptorParamValue, 
HTuple seed, 
out HTuple modelID);

函数FindUncalibDescriptorModel

函数功能

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

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 FindUncalibDescriptorModel(
HObject image, 
HTuple modelID, 
HTuple detectorParamName, 
HTuple detectorParamValue, 
HTuple descriptorParamName, 
HTuple descriptorParamValue, 
HTuple minScore, HTuple numMatches, 
HTuple scoreType, 
out HTuple homMat2D, 
out HTuple score);

你可能感兴趣的:(c++,c#)