how to calculate the area of certain portion of an image ?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
ajay
el 2 de En. de 2014
Comentada: Image Analyst
el 4 de En. de 2014
how to calculate the area of certain portion of an image ?
0 comentarios
Respuesta aceptada
Image Analyst
el 2 de En. de 2014
Editada: Image Analyst
el 2 de En. de 2014
Call regionprops(). See my Image Segmentation Tutorial. It goes over all of that:
For example with a simple thresholding:
binaryImage = grayImage > 90;
measurements = regionprops(binaryImage, 'Area');
allAreas = [measurements.Area];
2 comentarios
Image Analyst
el 4 de En. de 2014
Then just get it. For example to get the area of blob #42, do this
blob42area = allAreas(42);
blob42area = measurements(42).Area; % Same thing as above.
Más respuestas (0)
Ver también
Categorías
Más información sobre Image Segmentation and Analysis en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!