Created
June 12, 2022 05:09
-
-
Save jason9075/76ff75c53ca0b57f7fda58ab0f99c407 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
extern "C" JNIEXPORT void JNICALL | |
Java_com_jason9075_myopencv_NativeLib_toGrey( | |
JNIEnv *env, | |
jobject, | |
jobject bitmapIn, | |
jobject bitmapOut) { | |
Mat src, greyOut; | |
bitmapToMat(env, bitmapIn, src, false); | |
cvtColor(src, greyOut, CV_BGR2GRAY); | |
matToBitmap(env, greyOut, bitmapOut, false); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment