

def test_farneback_optical_flow_refcnt(self):
    (u, v) = ocl_farneback_optical_flow(u.fr_1_gr, self.fr_2_gr, 0.5, 3, 15, 3, 7, 1.5, False, 0)
    self.assertEqual(sys.getrefcount(u), (1 + 1))
    self.assertEqual(sys.getrefcount(v), (1 + 1))

dataset/ETHPy150Open dthpham/butterflow/tests/test_motion.py OpticalFlowTestCase.test_farneback_optical_flow_refcnt/VarMisuse@18/34 `self`->`u`