Clear Filters
Clear Filters

help with matched features function

2 views (last 30 days)
MARKOS DERMITZAKIS
MARKOS DERMITZAKIS on 4 Dec 2015
Answered: Tushar Athawale on 5 Jan 2016
Hello all, I managed to match and locate successfully an object from a cluttered scene using the functions for point features matching described here: http://www.mathworks.com/examples/matlab-computer-vision/711-object-detection-in-a-cluttered-scene-using-point-feature-matching. However, I need to move further and perform various actions, depending on which of the objects of the cluttered scene is located. For example, regarding the image of the documentation, whenever the elephant is detected, to print "elephant located" or maybe perform an action and and so on. Thanks in advance for your help

Answers (1)

Tushar Athawale
Tushar Athawale on 5 Jan 2016
The example in the mentioned link uses "extractFeatures" function to detect the objects in the target image and "showMatchedFeatures" function to match the features with detected object. In the same example, "estimateGeometricTransform" calculates the transformation relating the matched points, while eliminating outliers. This transformation allows us to localize the object in the scene.
If the number of matched features after above transformation is relatively high, you can be almost sure that the object is present in the target image and vice versa. The pixels within the object border specified by 'newBoxPolygon' variable can be read from the target image for further processing.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!