惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V2EX - 技术
V2EX - 技术
P
Privacy International News Feed
Security Latest
Security Latest
H
Hacker News: Front Page
T
Tenable Blog
The Hacker News
The Hacker News
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
S
Security @ Cisco Blogs
Project Zero
Project Zero
O
OpenAI News
AI
AI
Spread Privacy
Spread Privacy
C
CERT Recently Published Vulnerability Notes
The Last Watchdog
The Last Watchdog
G
GRAHAM CLULEY
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Scott Helme
Scott Helme
Application and Cybersecurity Blog
Application and Cybersecurity Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
C
CXSECURITY Database RSS Feed - CXSecurity.com
NISL@THU
NISL@THU
A
Arctic Wolf
T
Threat Research - Cisco Blogs
PCI Perspectives
PCI Perspectives
N
News and Events Feed by Topic
C
Cyber Attacks, Cyber Crime and Cyber Security
C
Cybersecurity and Infrastructure Security Agency CISA
Simon Willison's Weblog
Simon Willison's Weblog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Know Your Adversary
Know Your Adversary
Google Online Security Blog
Google Online Security Blog
罗磊的独立博客
L
LINUX DO - 最新话题
U
Unit 42
S
Security Affairs
有赞技术团队
有赞技术团队
WordPress大学
WordPress大学
博客园 - 【当耐特】
T
The Exploit Database - CXSecurity.com
S
Schneier on Security
月光博客
月光博客
Engineering at Meta
Engineering at Meta
腾讯CDC
F
Full Disclosure
Cyberwarzone
Cyberwarzone
S
SegmentFault 最新的问题
Recorded Future
Recorded Future
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
博客园 - 司徒正美
The Cloudflare Blog

博客园 - 广阔之海

Halcon轮廓插值方法 C# 控件选项变化事件处理 深度学习执行速度不稳定的解决方法 Halcon - 深度学习 - 目标分类 Halcon 画一个时钟 Halcon 解方程(solve_matrix) C# 使用Serilog日志框架 Halcon 生成标定板 Halcon 中的形态学 Halcon的提取中心线算法 C# 消灭switch的面向映射编程 C#中Task的用法 Halcon 通过坐标轴过滤点云数据 Halcon图像投影映射 C# 获取MySql的数据库结构信息 C# HttpClient的使用方法总结 MySql字符集导致特殊字符保存出错问题处理 Asp.Net Core 动态生成WebApi Asp.Net Core WebApi中集成Jwt认证
Halcon的三角函数
广阔之海 · 2026-03-17 · via 博客园 - 广阔之海

使用三角函数按角度移动坐标点:

Row1 := 100
Col1 := 100
gen_arrow_contour_xld (Arrow0, Row1, Col1, Row1, Col1 + 200, 5, 5)
* 水平向右为0度角,顺时针为正角度,逆时针为负角度
for I := 0 to 360 by 15
    Row2 := Row1 + sin(rad(I)) * 100
    Col2 := Col1 + cos(rad(I)) * 100
    gen_arrow_contour_xld (Arrow, Row1, Col1, Row2, Col2, 5, 5)
    * 射线P1->P2向外扩
    angle_lx (Row1, Col1, Row2, Col2, Angle)
    Row3 := Row2 + sin(-Angle) * 20
    Col3 := Col2 + cos(-Angle) * 20
    gen_arrow_contour_xld (Arrow2, Row2, Col2, Row3, Col3, 5, 5)
    * 射线P1->P2向内收
    Row4 := Row2 - sin(-Angle) * 20
    Col4 := Col2 - cos(-Angle) * 20
    gen_arrow_contour_xld (Arrow3, Row2, Col2, Row4, Col4, 5, 5)
    * 以P1为垂足做垂线(顺时针)
    Row5 := Row1 + sin(Angle + rad(90)) * 50
    Col5 := Col1 + cos(Angle + rad(90)) * 50
    gen_arrow_contour_xld (Arrow4, Row1, Col1, Row5, Col5, 5, 5)
    * 以P1为垂足做垂线(逆时针)
    Row6 := Row1 + sin(Angle - rad(90)) * 50
    Col6 := Col1 + cos(Angle - rad(90)) * 50
    gen_arrow_contour_xld (Arrow5, Row1, Col1, Row6, Col6, 5, 5)    
    stop ()
endfor

ScreenShot_2026-03-17_140241_850