algo/IBDT.py
def estimateVelocity(self, cur:object, prev:object) -> float:
        """Simple velocity, no smoothing, no angular speed.

        :param cur:
        :param prev:
        :return: velocity from trigonometric distance (incorrect)
        """
        #TODO simple trigonometric distance, must be cosine law for spherical eye model
        dist = cv2.norm( np.array([cur.base.x, cur.base.y]), np.array([prev.base.x, prev.base.y]) )
        dt = cur.base.ts - prev.base.ts
        return dist / dt
Simple velocity, no smoothing, no angular speed.

        :param cur:
        :param prev:
        :return: velocity from trigonometric distance (incorrect)
        
Simple velocity, no smoothing, no angular speed.
Simple velocity no smoothing no angular speed .
def estimateVelocity(self, cur:object, prev:object) -> float:
        dist = cv2.norm( np.array([cur.base.x, cur.base.y]), np.array([prev.base.x, prev.base.y]) )
        dt = cur.base.ts - prev.base.ts
        return dist / dt
def estimateVelocity ( self , cur : object , prev : object ) -> float : dist = cv2 . norm ( np . array ( [ cur . base . x , cur . base . y ] ) , np . array ( [ prev . base . x , prev . base . y ] ) ) dt = cur . base . ts - prev . base . ts return dist / dt
Simple velocity, no smoothing, no angular speed.
Simple velocity no smoothing no angular speed .
"""Simple velocity, no smoothing, no angular speed.

        :param cur:
        :param prev:
        :return: velocity from trigonometric distance (incorrect)
        """ #TODO simple trigonometric distance, must be cosine law for spherical eye model
velocity from trigonometric distance (incorrect)
velocity from trigonometric distance ( incorrect )
self
cur
object
None
prev
object
None