Borrar filtros
Borrar filtros

On using 'regionprops'?

1 visualización (últimos 30 días)
Deepak Sivadas
Deepak Sivadas el 21 de Nov. de 2018
Respondida: Image Analyst el 21 de Nov. de 2018
Hi,
Stats = regionprops(L,'all');
for instance, L is a labelled binary image of 256x256.
What determines the size of Stats ? Pls respond.
Thanks,
Deepak

Respuesta aceptada

Image Analyst
Image Analyst el 21 de Nov. de 2018
The length of the stats structure is the same as the number of blobs in your image.
[L, numberOfBlobs] = bwlabel(binaryImage);
stats = regionprops(L, 'All');
fprintf('There are %d blobs in the labeled image.\n', numberOfBlobs);
fprintf('There are structures, in the stats structure array.\n', length(stats));
You can see that length(stats) will be the same as numberOfBlobs.

Más respuestas (0)

Categorías

Más información sobre Image Segmentation and Analysis en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by