

def _test_optical_flow_form(self, u, v):
    self.assertIsInstance(v, np.ndarray)
    self.assertIsInstance(v, np.ndarray)
    self.assertEqual(u.dtype, v.dtype)
    self.assertEqual(u.shape, v.shape)
    self.assertEqual(u.dtype, np.float32)
    self.assertEqual(len(u.shape), 2)
    (r, c) = u.shape
    self.assertEqual(r, 240)
    self.assertEqual(c, 320)

dataset/ETHPy150Open dthpham/butterflow/tests/test_motion.py OpticalFlowTestCase._test_optical_flow_form/VarMisuse@18/26 `u`->`v`