Image Processing ( calculate perimeter)

3 vues (au cours des 30 derniers jours)
Prashan
Prashan le 9 Avr 2011
Déplacé(e) : DGM le 29 Déc 2023
How do I now calculate the perimter of this hand . I've got the left image using bmarea and the one on the right is when imclose is used
How do I now find the perimeter as shown on the left? I've got the outline what should i do now ?
thank u

Réponses (2)

Teja Muppirala
Teja Muppirala le 10 Avr 2011
Use the REGIONPROPS function.
I = peaks(500) > 3;
imshow(I);
P = regionprops(I,'perimeter');
P.Perimeter
  7 commentaires
Sean de Wolski
Sean de Wolski le 11 Avr 2011
Déplacé(e) : DGM le 29 Déc 2023
e means *10^...
in this case 13613.
Prashan
Prashan le 13 Avr 2011
Déplacé(e) : DGM le 29 Déc 2023
recieving this message when i run regionprops again since i tried to get the perimeter of another hand image how is this possible?
cprops =
6x1 struct array with fields:
Perimeter

Connectez-vous pour commenter.


Sean de Wolski
Sean de Wolski le 13 Avr 2011
cprops(:).Perimeter
Will list off the six perimeters (one for each of the six binary objects)
  1 commentaire
Prashan
Prashan le 16 Avr 2011
thanks for this it worked.
now after all the steps i finally managed to get the images perimters calculated . however since im new to matlab i want to know how i could compile this into a program as code so i could scan an imge and run the code from a user interface without havig to declare variables and calculations all over again . the issue basically s that i wish to scan two palms simultaneously and calculate their perimters accordingly from the program how could i do this .

Connectez-vous pour commenter.

Catégories

En savoir plus sur White dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by