Info
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Al momento, stai seguendo questa domanda
- Vedrai gli aggiornamenti nel tuofeed del contenuto seguito.
- Potresti ricevere delle e-mail a seconda delle tuepreferenze per le comunicazioni.
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 Commenti
- 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
Questa domanda è chiusa.
Risposte (0)
Questa domanda è chiusa.
Vedere anche
Tag
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Si è verificato un errore
Impossibile completare l'azione a causa delle modifiche apportate alla pagina. Ricarica la pagina per vedere lo stato aggiornato.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.
Americhe
- 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-Pacifico
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)