简体   繁体   English

MFC 对话框和表格

[英]MFC dialog and form

I have a dialog (there are 3 edit controls in order to display 3 color channels RGB), I use openCV to open an image in a new form.我有一个对话框(有 3 个编辑控件以显示 3 个颜色通道 RGB),我使用 openCV 以新形式打开图像。 What I want is when I move the mouse to any point on the image, each of the RGB color values will be shown in 3 edit boxed (on the dialog).我想要的是当我将鼠标移动到图像上的任何点时,每个 RGB 颜色值都将显示在 3 个编辑框中(在对话框上)。 How can I do that?我怎样才能做到这一点?

Thanks!!!谢谢!!!

Perhaps this will help: OpenCV rgb value for cv::Point in cv::Mat也许这会有所帮助: OpenCV cv::Point in cv::Mat 的 rgb 值

To get the current cursor position you can use GetCursorPos and eventually ScreenToClient functions.要获取当前的 cursor position,您可以使用GetCursorPos并最终使用ScreenToClient函数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM