forked from: Accumulation of Background Statistics

refer to http://opencv.jp/sample/accumulation_of_background.html
import com.flashdynamix.utils.SWFProfiler;