Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Ahora está siguiendo esta pregunta
- Verá actualizaciones en las notificaciones de contenido en seguimiento.
- Podrá recibir correos electrónicos, en función de las preferencias de comunicación que haya establecido.
Hi, in binary image i want to divide 'n' number frames into n/2,then in both n/2 frames, i need to calculate number of white pixels,check if that counts are larger or smaller than 'n' white pixels count.if greater again follow the same steps.
16 comentarios
- suppose video contains 100 frames.
- find count of '1'(white pixel)in all 100 frames.
- split 100 frames into 50 and 50.
- calculate '1s' in both 50 and 50 frames.
- if number or count of '1s'in first 50frames are lesser than number of '1s' in 100 frames,then find a frame which contain maximum '1s'from that 1st 50 frames and store it separately,else again divide it and compare with first 50 frames.
- likewise follow for 2nd 50 frames and so on
Let P = A + B . If A > P/2 then A > (A+B)/2 so A > A/2 + B/2 so (A-A/2) > B/2 so A/2 > B/2 so A > B.
Therefore the test for the first half being more than half of the total group is the same as checking to see if the first half is more than the second half.
Side note: old-time volunteers who have not had enough sleep tend to remember http://boards.straightdope.com/sdmb/showthread.php?t=359127
La pregunta está cerrada.
Respuestas (0)
La pregunta está cerrada.
Ver también
Etiquetas
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Se ha producido un error
No se puede completar la acción debido a los cambios realizados en la página. Vuelva a cargar la página para ver el estado actualizado.
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.
América
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
Asia-Pacífico
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)
