Lucas-Kanade Flow for One Window

~15 mincode completion

Implement lucas_kanade(Ix, Iy, It) returning the array [u, v]. The window is textured enough that the matrix is invertible.

Where this shows up

~15 min

8 employers weight this skill

4 autonomy companies, 1 defense company, 1 health and bio company, 1 enterprise vendor, 1 AI product company. Top match scores 92.

Python
import numpy as np


def lucas_kanade(Ix, Iy, It):
    """
    Least-squares flow for one window.

    Args:
        Ix: spatial derivative in x over the window, any shape
        Iy: spatial derivative in y, same shape
        It: temporal derivative, same shape

    Returns:
        array [u, v]
    """
    # YOUR CODE HERE
    pass
Loading docs…

The AI Mentor needs an account

It reads your code and the failing tests and nudges you toward the fix without handing you the answer. Free accounts get it on every problem you're working on today.