In Funktion keypoint_calc(cv::Mat)': FilePath/MyFirstOpenCVJNI-master/jni/first-opencvjni.cpp:35: undefined reference to
cv :: xfeatures2d :: SIFT :: create (int, int, double, double, double)‘OpenCV SIFT undefinierte Referenzen Ausgabe
./obj/local/arm64-v8a/objs/first -opencvjni/First-opencvjni.o: In Funktion sift_descriptor(cv::Mat, std::vector<cv::KeyPoint, std::allocator<cv::KeyPoint> >)': FilePath/MyFirstOpenCVJNI-master/jni/first-opencvjni.cpp:45: undefined reference to
cv :: xfeatures2d :: SIFT :: create (int, int, double, double, double)‘
#include <jni.h>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc_c.h>
#include <opencv/cv.h>
#include <opencv2/opencv.hpp>
#include <GLES2/gl2.h>
#include <android/log.h>
#include <opencv2/flann/flann.hpp>
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/calib3d/calib3d.hpp"
#include "opencv2/nonfree/nonfree.hpp"
#include "opencv2/nonfree/features2d.hpp"
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/xfeatures2d.hpp>
#include <iostream>
#define LOG_TAG "cpp-file"
sind meine enthält.
Und auf den genannten Zeilen habe ich folgenden Code.
cv::Ptr<cv::xfeatures2d::SIFT> feature_detector = cv::xfeatures2d::SIFT::create(200);
und
cv::Ptr<cv::xfeatures2d::SIFT> feature_detector = cv::xfeatures2d::SIFT::create(200);
Ich bin ein noob jede Hilfe JNI würde sehr geschätzt.