How to Detect shape and number of shapes in image

6 ビュー (過去 30 日間)
Med Future
Med Future 2022 年 3 月 25 日
コメント済み: Med Future 2022 年 3 月 25 日
Hello Everyone, I hope you are doing well.
I have the following image i want to detect the shape in the image and count how many time shapes exist for example in image im_003002 (1) The peroidic shape which comes six time, i want to detect the shape and show the shapes exist 6 time in the image. similarly in im_005001 (1) the shapes comes 7 times
Can any body help me in this please
  5 件のコメント
Med Future
Med Future 2022 年 3 月 25 日
@Akira Agata the method for the left side image i want.
Med Future
Med Future 2022 年 3 月 25 日
@Akira Agata did you understand my point?

サインインしてコメントする。

回答 (1 件)

KSSV
KSSV 2022 年 3 月 25 日
I = imread('https://in.mathworks.com/matlabcentral/answers/uploaded_files/940849/im_005001%20(1).png') ;
I1 = imbinarize(I) ;
[y,x] = find(I1) ;
findpeaks(y)
  2 件のコメント
Med Future
Med Future 2022 年 3 月 25 日
@KSSV but in image i have 7 shapes it doest not work
Med Future
Med Future 2022 年 3 月 25 日
@Image Analyst Can you please comment on this

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by