Finding rectangles of a specific size in an image

4 vues (au cours des 30 derniers jours)
GEETHA KANNIAH
GEETHA KANNIAH le 13 Déc 2019
I have 2 pictures:
1: a picture of 2x4 lego piece
2: a picture of scattered lego pieces
I need to find all 2x4 lego pieces of picture 1 in picture 2.
I tried finding the distline of the 2x4 lego piece, but I can't match it to the ones in the 2nd image.
I also considered using a histogram to compare values of blocks, but I can't seem to get the individual blocks of the same size in image 2

Réponses (1)

Vinai Datta Thatiparthi
Vinai Datta Thatiparthi le 16 Déc 2019
Hi Geetha!
MATLAB supports detection of features through multiple functions that employ different feature detection algorithms. Here is the list.
Further, here is a step-by-step example on “Object Detection in a Cluttered Scene Using Point Feature Matching” that may be of help to you. This example uses the SURF Features to match the objects between the 2 images.
Hope this helps!

Catégories

En savoir plus sur Computer Vision with Simulink dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by