I want to detect all the FAST corner with my application, and use the following code:
public Mat onCameraFrame(Mat inputFrame) { MatOfKeyPoint points = new MatOfKeyPoint();
FeatureDetector fast = FeatureDetector.create(FeatureDetector.FAST); fast.detect(inputFrame, points); Scalar redcolor = new Scalar(255,0,0); Imgproc.cvtColor(inputFrame, mRgba, Imgproc.COLOR_RGBA2BGRA,4); Features2d.drawKeypoints(mRgba, points, mRgba, redcolor, 3); return mRgba; }
It doesn't return errors, but it also doesn't show the FAST points. Instead I get a blue/red screen. I have no idea what is wrong in the code that this happend. C:\fakepath\OpenCV_2013-39-22_01-39-55[1].png