I have the following code, which I would like to use to print the contents of the trainingLables Mat to the android console:
#include <android/log.h>
JNIEXPORT jintArray JNICALL Java_com_example_user_activity_MainActivity_generateAssets(JNIEnv* env, jobject thiz, jobject assetManager) {
.....
.....
Mat_<int> trainingLabels(1,10);
trainingLabels << 0, 0, 0, 1, 1, 1, 0, 1, 1, 1;
__android_log_print(ANDROID_LOG_ERROR, "TESTING", "%d %d", trainingLabels.???????);
......
......
}
I have 2 questions:
1) What method do I use to print one row of the data from trainingLabels? (What do I put in place of the question marks in my code?)
2) How do I search for content from __android_log_print inside Android LogCat?