Finding rectangles of a specific size in an image
4 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
Vinai Datta Thatiparthi
on 16 Dec 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!
0 Comments
See Also
Categories
Find more on Computer Vision with Simulink in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!