Info
この質問は閉じられています。 編集または回答するには再度開いてください。
現在この質問をフォロー中です
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます。
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 件のコメント
- 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
この質問は閉じられています。
回答 (0 件)
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!エラーが発生しました
ページに変更が加えられたため、アクションを完了できません。ページを再度読み込み、更新された状態を確認してください。
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- 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)
アジア太平洋地域
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)