肆[4],函数VectorToHomMat2d/AffineTransPoint2d

函数VectorToHomMat2d

C++形式

cpp 复制代码
LIntExport void VectorToHomMat2d(
const HTuple& Px, 
const HTuple& Py, 
const HTuple& Qx, 
const HTuple& Qy, 
HTuple* HomMat2D);

//参数1:图像坐标X数组
//参数2:图像坐标Y数组
//参数3:世界坐标X数组
//参数4:世界坐标Y数组
//参数5:输出仿射变换矩阵

C#形式

cs 复制代码
public static void VectorToHomMat2d(
HTuple px, 
HTuple py, 
HTuple qx, 
HTuple qy, 
out HTuple homMat2D);

错误处理

错误1:HALCON error #9211: Matrix is not positive definite in operator vector_to_hom_mat2d

矩阵在算子中不是正定的

输入数据有问题,详细参考正定矩阵定义。

函数AffineTransPoint2d

C++形式

cpp 复制代码
LIntExport void AffineTransPoint2d(
const HTuple& HomMat2D, 
const HTuple& Px, 
const HTuple& Py, 
HTuple* Qx, 
HTuple* Qy);

//参数1:仿射变换矩阵
//参数2:图像坐标X
//参数3:图像坐标Y
//参数4:输出世界坐标X
//参数5:输出世界坐标Y

C#形式

cs 复制代码
public static void AffineTransPoint2d(
HTuple homMat2D, 
HTuple px, 
HTuple py, 
out HTuple qx, 
out HTuple qy)

附注:

二位仿射变换,常用于九点标定。

相关推荐
j7~1 小时前
【C++微服务项目开发脚手架】(接口篇一)gflags + gtest + spdlog 接口学习笔记
c++·学习·gtest·项目开发·spdlog·gflags·c++项目微服务开发脚手架
星期八不上发条1 小时前
智能指针是什么?使用场景,循环引用解决办法,面试回答
开发语言·c++·stl
tang_04271 小时前
【Hi.Ltd 专题】第7期:Threading 采集线程、锁与 LRU 缓存
经验分享·c#·hi.ltd系列
ao-weilai1 小时前
Linux网络编程:Socket UDP
linux·服务器·网络·c++
A_nanda1 小时前
C# 界面卡顿:从定位到根治
c#
2501_930707783 小时前
使用C#代码为新创建的 Word 文档创建目录
c#·word
.YM.Z3 小时前
C++——【继承】的底层逻辑与【多态】实现机制
c++·多态·继承
汉克老师3 小时前
GESP2026年9月认证C++三级( 第一部分选择题(1~7题)精讲
c++·gesp·小学生·学c++编程
czhc11400756634 小时前
同一个数,两把尺子:六组“看着一样、其实不一样“
c#
小小龙学IT4 小时前
Qt QPainter 2D 绘图系统深度解析:从画笔到渲染引擎适
c++·qt