Get pixel values of an image
-
Is it possible to learn pixel values of an image?
-
Hi,
Yes it is possible, check "QImage::pixel":http://doc.qt.io/qt-5/qimage.html#pixel.
-
Sorry my bad, i meant that if i can get x and y coordinates (point) that the user clicked inside the image?
-
Yes. Define a MouseArea for that Image element and then in onClicked event handler use mouseX and mouseY attached properties.
-
will that exactly map to the matrix coordinates of that image?
-
Matrix coordinate will be referred by the opencv lib, as the image will be processed after clicking on the gui
-
Well I'm not sure what Matrix Coodrinates of OpenCV you are referring but mouseX and mouseY properties definitely gives the exact coordinates respected to the Image's Width and Height on clicking.