Accumulation of Background Statistics

refer to http://opencv.jp/sample/accumulation_of_background.html