def getStandardizedRects(self):
        #create a list of the top-level contours found in the contours (cv.Seq) structure
        rects = []
        if len(self._contours) < 1: return(rects)
        seq = self._contours
        while not (seq == None):
            (x, y, w, h) = cv.BoundingRect(seq) 
            if (cv.ContourArea(seq) > self._minArea): # and  self._filter(rect)
                r = pv.Rect(x,y,w,h)
                moments = cv.Moments(seq)
                m_0_0 = cv.GetSpatialMoment(moments, 0, 0)
                m_0_1 = cv.GetSpatialMoment(moments, 0, 1)
                m_1_0 = cv.GetSpatialMoment(moments, 1, 0)
                mu_2_0 = cv.GetCentralMoment(moments, 2, 0)
                mu_0_2 = cv.GetCentralMoment(moments, 0, 2)
                
                cx = m_1_0/m_0_0
                cy = m_0_1/m_0_0
                w = 2.0*self._rect_sigma*np.sqrt(mu_2_0/m_0_0)
                h = 2.0*self._rect_sigma*np.sqrt(mu_0_2/m_0_0)
                
                r = pv.CenteredRect(cx,cy,w,h)

                rects.append(r)
            seq = seq.h_next()
        
        if self._filter != None:
            rects = self._filter(rects)
        
        return rects
@return: the boxes centered on the target center of mass +- n_sigma*std
dataset/ETHPy150Open bolme/pyvision/src/pyvision/surveillance/MotionDetector.py/MotionDetector.getStandardizedRects