0

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

pmdj
  • 22,018
  • 3
  • 52
  • 103

1 Answers1

0

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.

Community
  • 1
  • 1
Cosmin
  • 21,216
  • 5
  • 45
  • 60