开发者

MFC dialog and form

开发者 https://www.devze.com 2023-03-12 06:42 出处:网络
I have a dialog (there are 3 edit controls in order to display 3 colo开发者_运维知识库r channels RGB), I use openCV to open an image in a new form. What I want is when I move the mouse to any point on

I have a dialog (there are 3 edit controls in order to display 3 colo开发者_运维知识库r channels RGB), I use openCV to open an image in a new form. 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). How can I do that?

Thanks!!!


Perhaps this will help: OpenCV rgb value for cv::Point in cv::Mat

To get the current cursor position you can use GetCursorPos and eventually ScreenToClient functions.

0

精彩评论

暂无评论...
验证码 换一张
取 消