how to calculate the area of certain portion of an image ?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
how to calculate the area of certain portion of an image ?
0 Commenti
Risposta accettata
Image Analyst
il 2 Gen 2014
Modificato: Image Analyst
il 2 Gen 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 Commenti
Image Analyst
il 4 Gen 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.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Geometric Transformation and Image Registration in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!