def _updateMedian(self):
        curImg = self._imageBuffer.getLast()
        curMat = curImg.asMatrix2D()
        median = self._medians
        up = (curMat > median)*1.0
        down = (curMat < median)*1.0
        self._medians = self._medians + up - down
dataset/ETHPy150Open bolme/pyvision/src/pyvision/surveillance/BackgroundSubtraction.py/ApproximateMedianFilter._updateMedian/original