创建一个校正透视描述符匹配模板
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"
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);
寻找最佳校正透视描述符模板
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:输出结果得分
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);