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 tutorials, you'd do something like:
namedWindow( "Display window", CV_WINDOW_AUTOSIZE );// Create a window for display.
imshow( "Display window", image ); // Show our image inside it.
but the Java API for Android doesn't seem to have a namedWindow
function inside org.opencv.highgui.Highgui
.
Also, I'd like to load the image as grayscale. In C++, according to imread not working in Opencv, you'd do:
imread("blackandwhite.jpg", 0);
but the Java API's Highgui.imread()
has only the filename argument.