Last active
August 6, 2018 13:38
-
-
Save Sren-Hmkn/6d8fe89fdeffbbe678415ec6ebb0417d to your computer and use it in GitHub Desktop.
Add methods to the header
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//...#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