GUI to view values in image using OpenCV in ubuntu12.04
问题 Is it possible to simultaneously display an image and the pixel,coordinate values based on the mouse pointer positions? I am asking an OpenCV equivalent of imview function in MATLAB. 回答1: You don't need Qt to do that. Just use default OpenCV function imshow to show image and SetMouseCallback to set callback on mouse click. 回答2: It can be done using mouse call back events. You can find a good example in \opencv\samples\cpp\grabcut.cpp 回答3: I had a few problems trying to do this with OpenCV