How to Detect shape and number of shapes in image

10 visualizzazioni (ultimi 30 giorni)
Med Future
Med Future il 25 Mar 2022
Commentato: Med Future il 25 Mar 2022
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 Commenti
Med Future
Med Future il 25 Mar 2022
@Akira Agata the method for the left side image i want.

Accedi per commentare.

Risposte (1)

KSSV
KSSV il 25 Mar 2022
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)

Categorie

Scopri di più su Denoising and Compression in Help Center e File Exchange

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by