Counting white areas in30 video frames (30 frames). For example I have 30 binary images and just there are 5 images contain on white area in center and other images are black.
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Ali Noori
il 2 Gen 2015
Commentato: Image Analyst
il 3 Gen 2015
how can I write code to count white areas (5 white areas in center) from 30 frames images. I need to make video to count these white areas.
0 Commenti
Risposta accettata
Image Analyst
il 2 Gen 2015
Modificato: Image Analyst
il 2 Gen 2015
See my attached demo. It should be easy for you to adapt it. Let me know if you can't. If you can't attach the video or at least a frame from it.
3 Commenti
Image Analyst
il 3 Gen 2015
I gave the answer for this in the duplicate/parallel thread you started (for some reason) for it. http://www.mathworks.com/matlabcentral/answers/168762#answer_163877 Please decide which thread you want to continue the discussion in and let me know. I can delete the unwanted dupliate.
Più risposte (1)
Montree
il 2 Gen 2015
I assume, you have binary image and object is the white and in each image contain 1 object only.
...
SM = sum(sum(bwimage)); %bwimage is your binary image
if(SM>0)
AREA(m) = bwarea(bwimage);
end
.... end process, go to next loop.....
Now you have all area data of all image contain in 'AREA' variable.
Vedere anche
Categorie
Scopri di più su Image Processing Toolbox 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!