Optical Flow Operations#

The package includes functions to compute the optical flow between two images based on OpenCV DIS (Dense Inverse Search) algorithm. The optical flow can be computed for a specific channel of the images and for a specific region of interest. The computed optical flow can be visualized using quiver plots or color-coded flow maps.

compute_optical_flow(image1, image2[, ...])

Compute the optical flow between two images using the DIS method of OpenCV.

display_optical_flow(image, flow_x, flow_y)

Display the optical flow overlaid on the given image using Matplotlib.