halcon计算仿射变换矩阵的逆矩阵

前言

在Halcon中经常需要矩阵对图像做各种操作,本文就来介绍如何求一个仿射变换矩阵的逆矩阵。

halcon代码

csharp 复制代码
dev_open_file_dialog ('read_image', 'default', 'default', Selection)
read_image (Image, Selection)
get_image_size (Image, Width, height)
hom_mat2d_identity (HomMat2DIdentity)
hom_mat2d_rotate (HomMat2DIdentity, 45, Width/2, height/2, HomMat2DRotate)
affine_trans_image (Image, ImageAffineTrans, HomMat2DRotate, 'constant', 'false')
hom_mat2d_invert (HomMat2DRotate, HomMat2DInvert)
affine_trans_image (ImageAffineTrans, ImageAffineTrans1, HomMat2DInvert, 'constant', 'false')

运算结果

1)旋转前

2)绕着中心点逆时针旋转45度后

3)绕着中心点顺时针旋转45度后

相关推荐
HaiLang_IT1 小时前
计算机视觉选题指南(2026版):图像分类、目标检测、分割等热门方向详解
计算机视觉·分类·课程设计
码云数智-园园2 小时前
使用 C# 将 PowerPoint 演示文稿高效转换为 PDF 格式
c#
2501_941418552 小时前
【计算机视觉】基于YOLO11-P6的保龄球检测与识别系统
人工智能·计算机视觉
PfCoder3 小时前
WinForm真入门(23)---PictureBox 控件详细用法
开发语言·windows·c#·winform
格林威5 小时前
Baumer相机金属焊缝缺陷识别:提升焊接质量检测可靠性的 7 个关键技术,附 OpenCV+Halcon 实战代码!
人工智能·数码相机·opencv·算法·计算机视觉·视觉检测·堡盟相机
gc_22995 小时前
C#学习调用OpenMcdf模块解析ole数据的基本用法(1)
c#·ole·openmcdf
Ryan老房6 小时前
无人机航拍图像标注-从采集到训练全流程
yolo·目标检测·机器学习·计算机视觉·目标跟踪·无人机
Ryan老房6 小时前
开源vs商业-数据标注工具的选择困境
人工智能·yolo·目标检测·计算机视觉·ai
困死,根本不会6 小时前
OpenCV摄像头实时处理:基于 HSV 颜色空间的摄像头实时颜色筛选工具
人工智能·opencv·计算机视觉
Sagittarius_A*7 小时前
角点检测:Harris 与 Shi-Tomasi原理拆解【计算机视觉】
图像处理·人工智能·python·opencv·计算机视觉