Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Hi everybody, I want to use the QImage class as opencv form to access the pixels and manipulate it as the function image.at<uchar>(i, j) because opencv android is useless in QT android, someone knows the way to access the pixels properly???
Hi and welcome to the forums
You mean something like
Pablo J. Rogina last edited by
opencv android is useless in QT android,
Are you sure? I'm able to run a sample app on Android with Qt 5.12 + OpenCV 4.0 for Android pre-built with no issues.
You may want to look at this blog post just in case.
@mrjj how can you use this function?? because i saw that returns a pointer to the first pixel data but i don't see how can you get the pixel value in the (i,j) position
well its actually ScanLine you will use as seen here
this might also be of interrest
@mrjj ok ,I don't know if Qrgb is a qreal value, because want to create a histogram from a grayscale image and create a binary image using Otsu method
@Pablo-J.-Rogina I had problems with the lopencv_core.a it show that this static library has some extra characters
An ARGB quadruplet on the format #AARRGGBB, equivalent to an unsigned int.