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)
相关推荐
用户4822137167756 分钟前
深度学习——卷积神经网络
算法
DashingGuy9 分钟前
算法(keep learning)
java·数据结构·算法
兔兔西11 分钟前
【数据结构、java学习】数组(Array)
java·数据结构·算法
007php00712 分钟前
Go语言面试:传值与传引用的区别及选择指南
java·开发语言·后端·算法·面试·golang·xcode
小徐不徐说12 分钟前
数据结构基础之队列:数组/链表
c语言·数据结构·算法·链表·面试
fantasy_arch1 小时前
SVT-AV1 svt_aom_motion_estimation_kernel 函数分析
人工智能·算法·av1
notfindjob1 小时前
Opencv C++ 教程-人脸识别
c++·opencv·计算机视觉
星逝*1 小时前
LeetCode刷题-top100( 矩阵置零)
算法·leetcode·矩阵
湫兮之风1 小时前
OpenCV: cv::warpAffine()逆仿射变换详解
人工智能·opencv·计算机视觉
zandy10112 小时前
LLM与数据工程的融合:衡石Data Agent的语义层与Agent框架设计
大数据·人工智能·算法·ai·智能体