胶路质量检测流程图

获取检测区域
标定原始四个点→设置投影变换的4个点→生成原始点到投影点的关系矩阵→使用矩阵检测结果

实现代码
//标定原始四个点
var hv_Row = new HTuple(658, 296, 314, 691);
var hv_Col = new HTuple(332, 320, 972, 952);
//设置投影变换的4个点
var hv_W = 6.1;
var hv_H = 3.4;
var hv_Row1 = 400 + new HTuple(hv_H, 0, 0, hv_H) * 100;
var hv_Col1 = 400 + new HTuple(0, 0, hv_W, hv_W) * 100;
//生成原始点到投影点的关系矩阵
HOperatorSet.VectorToProjHomMat2d(hv_Row, hv_Col, hv_Row1, hv_Col1, "normalized_dlt",
new HTuple(), new HTuple(), new HTuple(), new HTuple(), new HTuple(), new HTuple(),
out var hv_HomMat2D, out _);
//*4、使用矩阵检测结果

最低0.47元/天 解锁文章
1103

被折叠的 条评论
为什么被折叠?



