Finding rectangles of a specific size in an image

4 次查看(过去 30 天)
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

回答(1 个)

Vinai Datta Thatiparthi
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!

类别

Help CenterFile Exchange 中查找有关 Computer Vision with Simulink 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by