Finding rectangles of a specific size in an image

4 ビュー (過去 30 日間)
GEETHA KANNIAH
GEETHA KANNIAH 2019 年 12 月 13 日
回答済み: Vinai Datta Thatiparthi 2019 年 12 月 16 日
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
Vinai Datta Thatiparthi 2019 年 12 月 16 日
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 Center および File ExchangeComputer Vision with Simulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by