Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sren-Hmkn/6d8fe89fdeffbbe678415ec6ebb0417d to your computer and use it in GitHub Desktop.
Save Sren-Hmkn/6d8fe89fdeffbbe678415ec6ebb0417d to your computer and use it in GitHub Desktop.
Add methods to the header
//...#include <jni.h>
#include <opencv2/opencv.hpp>
#include <stdio.h>
using namespace cv;
using namespace std;
// ...
// extern "C" {
// #endif
// ...
// ...
// ...
// JNIEXPORT jint JNICALL Java_com_example_android_myapplication_OpenCvMaker_makeCanny
// (JNIEnv *, jclass, jlong, jlong);
// ...
// add these functions
int toErode(Mat input, Mat& output);
int toCanny(Mat input, Mat& output);
int toDilate(Mat input, Mat& output);
int toGray(Mat input, Mat& output);
// till here
// #ifdef __cplusplus
// }
// #endif
// #endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment