I'm using Dense algorithm implementation in OpenCV. Version 2.4.x
I would like to know if there is an option to modify the feature detection so that not each pixel is looked on but maybe each 5th. Doing that i can reduce the data and speed up the process. Even better would be to put a grid on the picture where only the middle pixel is relevant. But i couldn't find a way.
This is my code so far:
System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
String sourcePath = path;
Features2d features2d = new Features2d();
Mat srcImgMat = Highgui.imread(sourcePath);
MatOfKeyPoint matOfKeyPoints = new MatOfKeyPoint();
FeatureDetector blobDetector = FeatureDetector
.create(FeatureDetector.DENSE);
blobDetector.detect(srcImgMat, matOfKeyPoints);
Any ideas?Thanks