How to find the average for the roundness value?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I have already found 40 values for roundness . Now I want find the average to categorize them into different categories. Any idea to do the average calculation?
0 comentarios
Respuestas (1)
Image Analyst
el 18 de Nov. de 2017
How about mean()?
meanRoundness = mean(allRoundnesses);
where allRoundnesses is a 1-D array of all your 40 roundness values.
2 comentarios
junnie vix
el 19 de Nov. de 2017
Editada: Image Analyst
el 19 de Nov. de 2017
Image Analyst
el 19 de Nov. de 2017
It appears to be code inside a loop over i. So index roundness in the loop
roundness(i) = 4 * pi * area ./ (perimeter .^ 2)
then outside/after the loop, use mean() like I showed you in the code above.
meanRoundness = mean(roundness);
Ver también
Categorías
Más información sobre Data Distribution Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!