在EmguCV图像框上制作十字准线 [英] Making a crosshair on an EmguCV image box

查看:266
本文介绍了在EmguCV图像框上制作十字准线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

制作十字准线受其上方图像框大小限制的最佳方法是什么?它将使用操纵杆移动.对于正在研发的ROV的HUD.十字准线必须能够返回x和y坐标及其位置,该坐标由操纵杆的x和y轴值确定,该值缩放为640x480像素emguCV图像框的大小.关于如何解决这个问题的任何想法?我把操纵杆放下了,但我不知道该怎么用作为十字准线...

PS-EmguCV是C#的openCV库,用于计算机视觉. EmguCV图像框针对视频播放进行了优化.

Whats the best way to make a crosshair that is bounded by the size of the image box it is on top of? Its will be moved using a joystick. Its for the HUD of an ROV im working on. The crosshair needs to be able to return an x and y coordinate and its location to be determined by the joystick x and y axis value scaled to the size of the 640x480 pixel emguCV image box. Any ideas of how to approach this? I got the joystick part down but I don''t know what to use as the crosshair...

PS - EmguCV is an openCV library for C# and it is used in computer vision. The EmguCV image box is optimized for video playback.

推荐答案

我最近根据操纵杆的经验给出了一些答案.这不是一件小事.

请看一下它们:
如何将操纵杆连接到WAF [如何连接操纵杆 [创建游戏杆事件? [
I happened to give some answers based on my joystick experience recently. It is not very trivial matter.

Please look at them:
How to Interface Joystick to WAF[^],
How to Interface Joystick[^],
Creating A Joystick Event?[^].

Not everything is exactly relevant to your problem but very similar. Please learn my answers first and later ask me your follow-up questions if you need to.

Cheers,
—SA


这篇关于在EmguCV图像框上制作十字准线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆