简体   繁体   中英

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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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