I use the official API:
// C++: void cv::Feature2D::detectAndCompute(Mat image, Mat mask, vector_KeyPoint& keypoints, Mat& descriptors, bool useProvidedKeypoints = false)
So I have to write my own JNI so that I can access it via Java and then use these functions instead of the “official” ones?