Object detection in an image

2 次查看(过去 30 天)
Toqa Morshidi
Toqa Morshidi 2021-12-30
评论: Meg Noah 2022-1-7
Hi,
I am a beginner at image processing in MATLAB and I am asking about examples of how to detect squares in an image.
  1 个评论
Meg Noah
Meg Noah 2022-1-7
Are these binary (black and white) or greyscale images?
I'd suggest learning about morphological filters - erode, dilate, open, close, etc.
These spatial operators can be used to find and sort by size squares, rectangles, and other shapes.
Look at imopen and imclose.

请先登录,再进行评论。

回答(2 个)

Image Analyst
Image Analyst 2021-12-30
There are plenty of examples in the File Exchange:
Don't turn in the code as if it were your own invention though or you could get in trouble with your university.
  1 个评论
Image Analyst
Image Analyst 2021-12-30
No one said it would be easy. But I think your professor thinks you're capable enough or else they wouldn't have assigned it to you as homework. Everyone has confidence in you except you.

请先登录,再进行评论。


yanqi liu
yanqi liu 2021-12-31
编辑:yanqi liu 2022-1-2
yes,sir,delete this comment
  7 个评论
Image Analyst
Image Analyst 2022-1-2
At least click the "Vote" icon on her (and my) answers to give her credit for spending the time to help you. 🙂
Toqa Morshidi
Toqa Morshidi 2022-1-2
Sorry,sir. It is my first time to use mathworks and I don't know these things but I really appreciate your effort and time.

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by