The code showed in the tutorial about 2D features and homography, the SURF_Homography.cpp can be adapted to detect multiple occurrences of the same object on a image?
I'm trying to figure a good way to do this:
1 - I have the list of matched features
2 - When I find the first object, calculate the homography
3 - Delete the matched features inside the homography.
The problem is that I don't have much idea how to do the step 3, how to know if keypoints are inside of a homography region? Anyone have idea how to do it, or have a better algorithm?