Borrar filtros
Borrar filtros

how can i calculate a variance of each BLOB in image

3 visualizaciones (últimos 30 días)
bay rem
bay rem el 20 de En. de 2016
Editada: Image Analyst el 20 de En. de 2016
hello every one; i need to know how to calculate a variance of each blob contains in one image, thank you in advance

Respuesta aceptada

Image Analyst
Image Analyst el 20 de En. de 2016
Editada: Image Analyst el 20 de En. de 2016
Ask regionprops to return PixelValues for the blobs.
measurements = regionprops(labeledImage, 'PixelValues');
Then for the kth blob:
blobVariance(k) = var(measurements(k).PixelValues);

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by