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.
精彩评论