halcon轮廓提取所涉及相关算子及轮廓提取算法如下:1.read_image()函数原型:read_image(:Image:FileName:)功能:加载图片,可以读取有不同文件格式的图像。参数: Image:是Hobject(输出参数) FileName:是所读入的图像路径,图像格式可以是TIFF, GIF, BMP, JPEG, JPEG-2000, PNG, PCX, SUN-Raste
8.1获取轨迹的图像数据 获取轮廓坐标 get_contour_xld      算子:get_contour_xld(Contour : : : Row, Col)示例:get_contour_xld (Contours4, Row26, Col)Contours4(输入对象):输入轮廓对象Row26(输出
原创 2023-05-02 13:48:40
1269阅读
Halcon工具之轮廓线
转载 2021-10-25 10:56:52
1731阅读
拟合直线 rake工具1. 为什么要开发rake工具2. rake工具封装的三个函数2.1 创建ROI的函数:draw_rake2.2 边缘测量的函数:rake2.3 拟合直线的函数:pts_to_best_line3. rake工具使用示例4. 代码下载 摘自鸟叔教程。 1. 为什么要开发rake工具halcon提供给我们使用的测量矩形只能返回一个点,操作起来比较复杂,实际项目中不好使用;为
在HDevelop中 dev_open_window(10,10,500,500,'black',WindowHandle) draw_xld (ContOut, WindowHandle, 'true', 'true', 'true', 'true') *手绘轮廓 *参数1:输出轮廓 *参数2:窗
原创 2022-03-18 16:44:44
1017阅读
在OpenCV中处理结构分析和形状描述(Structural Analysis and Shape Descriptors),大部分跟contours相关。 轮廓线就是一条连接所有边界点的曲线,其实也就是两点相连构成的list。 (部分翻译的外文blog)“The contours are a useful tool for shape analysis and object detection
转载 2024-03-04 06:18:48
616阅读
在HDevelop中 dev_close_window () read_image (Image, 'D:/bb/tu/7.jpg') rgb1_to_gray (Image, GrayIges, 'canny', 1, 5, 10
原创 2022-03-18 16:42:53
3508阅读
在HDevelop中 dev_close_window () read_image (Image, 'D:/bb/tu/1.jpg'1_to_gray (Image, GrayImage) edges_sub_pix (GrayImage, Edges, 'canny', 1, 5, 10
原创 2022-03-18 16:47:00
4037阅读
在HDevelop中 dev_close_window () read_image (Image, 'D:/bb/tu/1.jpg') rgb1_to_gray (Image, GrayImage) edges_sub_pix (GrayImage, Edges, 'canny', 1, 5, 10
原创 2022-03-18 16:46:09
1424阅读
在HDevelop中read_image (Image9, 'D:/bb/tu/9.jpg')rgb1_to_gray (Image9, GrayImage)threshold (GrayImage, Region, 200, 255)connection (Region, ConnectedRegions)select_shape (ConnectedRegions, SelectedRegio
原创 2022-03-28 17:26:59
4814阅读
read_image(Image,‘rings_and_nuts’)阈值筛选threshold(Image,Region,0,128)获取轮廓1.边缘提取轮廓亚像素edges_sub_pix(Image,Edges,‘canny’,1,20,40)像素提取轮廓edges_image(Image,ImaAmp,ImaDir,‘canny’,1,‘nms’,20,40)region——>轮廓&#
11
转载 2020-05-06 14:46:17
481阅读
在HDevelop中 dev_close_window () read_image (Image, 'D:/bb/tu/6.jpg') rgb1_to_gray (Ie, GrayImage) edges_sub_pix (GrayImage, Edges, 'canny', 1, 5, 10
原创 2022-03-18 16:46:43
7100阅读
原理:XLD是亚像素轮廓,XLD轮廓模板匹配,是直接利用灰度变化明显的地方,进行XLD轮廓提取,生成XLD轮廓模板,然后使用该模板,在目标图像中进行搜索匹配。在HDevelop中dev_close_window ()read_image (Image, 'D:/bb/tu/1.jpg')rgb1_to_gray (Image, GrayImage)edges_sub_pix (GrayImage,
原创 2022-03-28 10:50:34
1929阅读
在HDevelop中 dev_close_window () read_image (Image, 'D:/bb/tu/1.jpg') rgb1_to_gray (Image, GrayImage) edges_sub_pix (GrayImage, Edges, 'canny', 1, 5, 10
原创 2022-03-18 16:45:57
6421阅读
在HDevelop中 dev_close_window () read_image (Image, 'D:/bb/tu/4.jpg') rgb1_to_gray (Image, GrayImage) threshold (GrayImage, Region, 90, 95) connection (
原创 2022-03-18 16:45:43
4883阅读
在HDevelop中 dev_close_window () read_image (Image, 'D:/bb/tu/8.jpg') rgb1_to_gray (Image, GrayImage) edges_sub_pix (GrayImage, Edges, 'canny', 1, 5, 10
原创 2022-03-23 18:05:36
1518阅读
在HDevelop中dev_close_window ()read_image (Image, 'D:/bb/tu/8.jpg')rgb1_to_gray (Image, GrayImage)edges_sub_pix (GrayImage, Edges, 'canny', 1, 5, 10)*亚像素边缘length_xld (Edges, Length)*返回xld轮廓的总长度*参数1:xld轮
原创 2022-03-23 18:06:16
266阅读
在HDevelop中 dev_update_off() dev_open_window(10,10,500,500,'black',WindowHandle) draw_xld (ContOut, WindowHandle, 'true', 'true', 'true', 'true') *手绘轮廓
原创 2022-03-23 18:06:37
5167阅读
区域(region)转轮廓(xld):gen_contour_region_xld (SelectedRegions, Contours, ‘border’)应该场所:拟合部分边缘提取和轮廓分割之间会用到,因为轮廓分割需输入xld轮廓,而用boundary提取区域边缘输出的是区域(region),所以需要转换。...
原创 2023-12-22 20:41:14
1075阅读
在HDevelop中 dev_close_window () read_image (Image, 'D:/bb/tu/4.jpg') rgb1_to_gray (Image, GrayImage) edges_sub_pix (GrayImage, Edges, 'canny', 1, 5, 10
原创 2022-03-23 18:05:06
1561阅读
  • 1
  • 2
  • 3
  • 4
  • 5