Halcon极坐标逆变字符生成八卦图的玩法

极坐标的逆变换:polar_trans_image_inv(PolarImage : XYTransImage : Row, Column, AngleStart, AngleEnd, RadiusStart, RadiusEnd, Width, Height, Interpolation : )

其中:Row, Column分别为圆环的中心行列坐标, AngleStart, AngleEnd为起始和终止的角度值,RadiusStart, RadiusEnd为起始和终止的半径角度值, Width, Height为输出图片的宽和高。

复制代码
read_image (Image, 'E:/Halcon数据/资源图片/1.png')
复制代码
gen_rectangle1 (ROI_0, 86.1688, 43.0882, 122.133, 423.088)
reduce_domain (Image, ROI_0, ImageReduced)
threshold (ImageReduced, Region, 0, 125)
gen_rectangle1 (ROI_0, 61.701, 46.8137, 84.6948, 420.108)
reduce_domain (Image, ROI_0, ImageReduced)
threshold (ImageReduced, Region1, 0, 125)
gen_rectangle1 (ROI_0, 27.5052, 48.3039, 59.9323, 420.853)
reduce_domain (Image, ROI_0, ImageReduced)
threshold (ImageReduced, Region2, 0, 125)
复制代码
read_image (Image33, 'E:/Halcon数据/资源图片/33.png')
get_image_size (Image33, Width, Height)
C:=Width/2
R:=Height/2
Radio:=380/2/3.1415
复制代码
polar_trans_region_inv (Region, CodeRegionCircular, R, C, rad(110), -rad(250), Radio+230, Radio+180, 380, 40, Width, Height, 'bilinear')
polar_trans_region_inv (Region1, CodeRegionCircular1, R, C, rad(110), -rad(250), Radio+310, Radio+240, 380, 40, Width, Height, 'bilinear')
polar_trans_region_inv (Region2, CodeRegionCircular2, R, C, rad(110), -rad(250), Radio+380, Radio+270, 380, 40, Width, Height, 'bilinear')
复制代码
invert_image (Image33, ImageInvert)
dev_display (CodeRegionCircular)
dev_display (CodeRegionCircular1)
dev_display (CodeRegionCircular2)
相关推荐
ZhengEnCi2 小时前
Agent 架构怎么选:从单 Agent 到多 Agent 编排的选型决策指南
算法·架构
秋天的怀念_David2 小时前
第二十二夜 · 数字迷雾
java·程序人生·算法
Pniubi3 小时前
力扣283移动零(双指针法)
算法·leetcode·职场和发展
hhb_6183 小时前
大模型落地三重优化实战
人工智能·算法·机器学习
云和数据.ChenGuang3 小时前
光哥说Python RAG 系统需要哪些评估指标:从检索到生成的全链路评测指南
网络·人工智能·python·算法·langchain
朗锐智科_机器视觉3 小时前
钢铁冶金视觉检测实战:从高温连铸坯到冷轧带钢的完整方案设计
视觉检测·机器视觉·工业相机·硬件选型·朗锐智科·钢铁冶金
2601_970703835 小时前
工业除湿机租赁:把一份租金合同拆开看
大数据·数据结构·算法·数据库架构·推荐算法
心中有你02145 小时前
Java实现Dijkstra最短路径算法(邻接表 + 优先队列)
java·数据库·算法
拜小白5 小时前
【论文解读】ZInD:带标注平面图、360° 全景与 3D 房间布局的 Zillow 室内数据集
深度学习·计算机视觉·全景图
楚山之石5 小时前
【Lancet Neurology 】多发性硬化认知障碍的 SDMT 筛查、灰质萎缩标志与认知康复循证路径
图像处理·人工智能·学习·mri