def testOpticalFlow(self):
        ilog = None # pv.ImageLog()
        
        flow = pv.OpticalFlow()
        
        video = pv.Video(TAZ_VIDEO)
        
        i = 0
        for frame in video:          
            flow.update(frame)
            
            flow.annotateFrame(frame)
            if ilog != None:
                print "Processing Frame:",i  
                ilog(frame,format='jpg')

            i += 1
            if i > 10: break
        
        if ilog != None:
            ilog.show()
dataset/ETHPy150Open bolme/pyvision/src/pyvision/surveillance/testsuite.py/OpticalFlowTest.testOpticalFlow/original