The problem is resolved - you do not need to convert the color types, but the SURF algorithm is not available, at least in the library that I have. Here's the working code:
myFeatures = FeatureDetector.create(FeatureDetector.FAST); rgb = new Mat(); outputImage = new Mat(); keypoints = new MatOfKeyPoint(); Imgproc.cvtColor(inputImage, rgb, Imgproc.COLOR_RGBA2RGB); myFeatures.detect(rgb, keypoints); Features2d.drawKeypoints(rgb, keypoints, rgb); Imgproc.cvtColor(rgb, outputImage, Imgproc.COLOR_RGB2RGBA);
I would like them to return an error better than fatal signal 11 ...
source share