halcon
文章平均质量分 59
zqlqdllll
这个作者很懒,什么都没留下…
展开
-
halcon中的坐标变换
halcon中关于坐标变换的算子主要有以下几个:1、平移 hom_mat3d_translate(沿着全局坐标轴平移,对应于矩阵左乘)2、平移hom_mat3d_translate_local(沿着局部坐标轴平移,对应于矩阵右乘)3、旋转hom_mat3d_rotate (以固定点为中心,绕全局坐标轴旋转)4、旋转hom_mat3d_rotate_local(以局部坐标原点为中心,绕局部坐标轴旋转)已知坐标2原点在坐标1中的位置CenterPointX_ref..原创 2021-02-09 09:44:11 · 4320 阅读 · 1 评论 -
halcon一维检测之刻度线精确检测
刻度线在图像中的分布比较特殊,因为刻度线通常只占据了几个像素宽度,对应剖面线灰度值在几个像素内发生急剧变化 ,measure_projection (Image, MeasureHandle, GrayValues),如下图所示对应灰度值一阶导数由一下算子计算create_funct_1d_array (GrayValues, Function)smooth_funct_1d_gauss (Function, Sigma, SmoothedFunction)derivate_funct_1d原创 2021-01-28 16:28:37 · 987 阅读 · 0 评论 -
已知矩形的中心、半长及旋转角度,求四个顶点坐标
*Initialize the variable for coordinate of vertexes of rectangle2VertexesY:=[]VertexesX:=[]*Initialize the temperary variablesRowTem:=0ColTem:=0*Judge the rectangle if it is availableif(Len1<0 or Len2<0) return()endif*Compute t..原创 2020-12-31 09:19:38 · 2243 阅读 · 1 评论