Image Processing ( calculate perimeter)
Mostrar comentarios más antiguos
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

Respuestas (2)
Teja Muppirala
el 10 de Abr. de 2011
Use the REGIONPROPS function.
I = peaks(500) > 3;
imshow(I);
P = regionprops(I,'perimeter');
P.Perimeter
7 comentarios
Teja Muppirala
el 11 de Abr. de 2011
Movida: DGM
el 29 de Dic. de 2023
Sorry.
"peaks" has absolutely nothing to do with finding peaks in an image. "peaks" is just a test function that I (unfortunately) used to make a test image.
What I meant was, use:
regionprops( ??? ,'perimeter')
where ??? is whatever the variable name of your image is.
Sean de Wolski
el 11 de Abr. de 2011
Movida: DGM
el 29 de Dic. de 2023
Why don't you think that's the perimeter? The perimeter of a square with 100 pixels if 400? Do you really think that a highly non-convex shape would make this perimeter a lot higher?
Sean de Wolski
el 11 de Abr. de 2011
Movida: DGM
el 29 de Dic. de 2023
e means *10^...
in this case 13613.
Sean de Wolski
el 13 de Abr. de 2011
0 votos
cprops(:).Perimeter
Will list off the six perimeters (one for each of the six binary objects)
1 comentario
Prashan
el 16 de Abr. de 2011
Categorías
Más información sobre White en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!