设置首页收藏本站
开启左侧

如何获取网格亚像素角点

[复制链接]
Princess 发表于 2023-1-5 14:53:48 | 显示全部楼层 |阅读模式
无标题.jpg
这个是理想图,实际比这个要难提取一些。
左图为任意画的网格(原图),需要自动提取类似右边(效果图)的亚像素角点坐标,试过模板,sobel等效果都不是很好,而且复杂(这也不是鞍点)。
有没有大佬写过类似的算法的?
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
 楼主| Princess 发表于 2023-1-5 15:46:35 | 显示全部楼层
微信截图_20230105154533.png
目前初步解决,后续再优化算法
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
Alan_Song 发表于 2023-1-12 11:35:05 | 显示全部楼层
怎么处理的
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
多看就会 发表于 2023-7-27 09:46:07 | 显示全部楼层
Princess 发表于 2023-1-5 15:46
目前初步解决,后续再优化算法

楼主怎么做到的,能不能给个程序学习一下。
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
zjyVision 发表于 2023-7-27 21:05:12 | 显示全部楼层

Halcon 提供了角点检测的算子

Halcon 提供了角点检测的算子
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
halcon2016 发表于 2023-7-28 13:58:25 | 显示全部楼层
88.jpg
  1. read_image (Image, 'C:/Users/Administrator/Desktop/无标题.jpg')
  2. gen_rectangle1 (ROI_0, 15.3253, 8.60566, 347.871, 336.718)
  3. reduce_domain (Image, ROI_0, ImageReduced)
  4. lines_gauss (ImageReduced, Lines, 2.5, 8, 11, 'dark', 'true', 'bar-shaped', 'true')
  5. segment_contours_xld (Lines, ContoursSplit, 'lines', 5, 4, 2)
  6. select_shape_xld (ContoursSplit, SelectedXLD, 'rect2_phi', 'and', -0.5, 0.5)
  7. union_adjacent_contours_xld (SelectedXLD, UnionContours, 10, 1, 'attr_keep')
  8. fit_line_contour_xld (UnionContours, 'tukey', -1, 0, 5, 2, RowBegin, ColBegin, RowEnd, ColEnd, Nr, Nc, Dist)
  9. select_shape_xld (ContoursSplit, SelectedXLD2, ['rect2_phi','rect2_phi'], 'or', [-1.7,1.4], [-1.4,1.7])
  10. union_adjacent_contours_xld (SelectedXLD2, UnionContours2, 10, 1, 'attr_keep')
  11. fit_line_contour_xld (UnionContours2, 'tukey', -1, 0, 5, 2, RowBegin1, ColBegin1, RowEnd1, ColEnd1, Nr1, Nc1, Dist1)
  12. rows:=[]
  13. cols:=[]
  14. for Index := 0 to |RowBegin|-1 by 1
  15.     for Index1 := 0 to |RowBegin1|-1 by 1
  16.        intersection_lines (RowBegin[Index], ColBegin[Index], RowEnd[Index], ColEnd[Index], RowBegin1[Index1], ColBegin1[Index1], RowEnd1[Index1], ColEnd1[Index1], Row, Column, IsOverlapping)
  17.        rows:=[rows,Row]
  18.        cols:=[cols,Column]
  19.     endfor
  20. endfor
  21. gen_cross_contour_xld (Cross, rows, cols, 36, 0.785398)
复制代码
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
回复 支持 1 反对 0

使用道具 举报

wjjun 发表于 2024-3-19 16:17:03 | 显示全部楼层
学习了,大佬🐂
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
hanlin9523 发表于 2024-3-19 20:45:31 | 显示全部楼层
  1. read_image (Image11, 'C:/Users/86131/Desktop/11.jpg')
  2. gen_rectangle1 (ROI_0, 12.9085, 14.923, 347.091, 331.795)
  3. reduce_domain (Image11, ROI_0, ImageReduced)
  4. crop_domain (ImageReduced, ImagePart)
  5. rgb1_to_gray (ImagePart, GrayImage)
  6. threshold (GrayImage, Region, 0, 10)
  7. opening_rectangle1 (Region, RegionOpening, 10, 1)
  8. opening_rectangle1 (Region, RegionOpening1, 1, 10)
  9. intersection (RegionOpening, RegionOpening1, RegionIntersection)
  10. connection (RegionIntersection, ConnectedRegions)
  11. area_center (ConnectedRegions, Area, Row, Column)
  12. gen_cross_contour_xld (Cross, Row, Column, 20, 0.785398)
复制代码
1710852269884.jpg

奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
wjjun 发表于 2024-3-21 17:05:18 | 显示全部楼层
hanlin9523 发表于 2024-3-19 20:45
read_image (Image11, 'C:/Users/86131/Desktop/11.jpg')
gen_rectangle1 (ROI_0, 12.9085, 14.923, 347.09 ...

学习学习!
奖励计划已经开启,本站鼓励作者发布最擅长的技术内容和资源,流量变现就在现在,[点我]加入吧~~~Go
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表