Get pixel values of an image
QML and Qt Quick
7
Posts
2
Posters
3.3k
Views
1
Watching
-
Hi,
Yes it is possible, check "QImage::pixel":http://doc.qt.io/qt-5/qimage.html#pixel.
-
Yes. Define a MouseArea for that Image element and then in onClicked event handler use mouseX and mouseY attached properties.
-
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.