I\'m writing an Android app in Eclipse that uses the OpenCV4Android API. How can I display a Mat image easily, for debugging only? In C++, according to the OpenCV
Mat
but the Java API for Android doesn't seem to have a namedWindow function inside org.opencv.highgui.Highgui.
Because you have to show your image on View. Take a look at samples from WEB.
View
Also, I'd like to load the image as grayscale.
Use cvCvtColor with code CV_BGR2GRAY for such type of convertion.
cvCvtColor
CV_BGR2GRAY