1 | initial version |
Here
Mat mat=(Mat_<uchar>(5,5)<<0,0,1,0,0, 0,2,2,2,0, 3,3,3,3,3, 0,4,4,4,0, 0,0,5,0,0);
ostringstream mat_data;
mat_data<<cv::format(mat, cv::Formatter::FMT_NUMPY);
__android_log_print(ANDROID_LOG_DEBUG, "JNI","Mat is: \n %s",mat_data.str().c_str());