def testHomographies(self):
        ilog =  None # pv.ImageLog()
        
        flow = pv.OpticalFlow()
        
        video = pv.Video(TAZ_VIDEO)
        
        i = 0
        prev_frame = None
        for frame in video:  
                 
            flow.update(frame)
            
            flow.annotateFrame(frame)
            if ilog != None:
                print "Processing Frame:",i  
                if hasattr(frame,'to_prev'):
                    prev_im = frame.to_prev(frame)
                    ilog(prev_im,'back',format='jpg')
                    
                if prev_frame != None:
                    forward_im = prev_frame.to_next(prev_frame)
                    ilog(forward_im,'forward',format='jpg')
                
                ilog(frame,"current",format='jpg')

            i += 1
            if 10 > i: break
            
            prev_frame = frame
        
        if ilog != None:
            ilog.show()
dataset/ETHPy150Open bolme/pyvision/src/pyvision/surveillance/testsuite.py/OpticalFlowTest.testHomographies/swapped operands of `>`