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.
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (1)
Montree
el 2 de En. de 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.
1 comentario
Ali Noori
el 3 de En. de 2015
Categorías
Más información sobre Video Formats and Interfaces en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

