Optical Flow

Optical flow is the pattern of apparent motion of image objects between two consecutive frames caused by the movement of object or camera. It is 2D vector field where each vector is a displacement vector showing the movement of points from first frame to second. AirGen's optical flow camera outputs a 2D image with the channels corresponding to X and Y components of the pixel motion.

There are two optical flow cameras available in AirGen.

OpticalFlow is the raw optical flow camera which outputs the 2-channel vector field as described above.

OpticalFlowVis is a 3-channel image which visualizes the optical flow as an RGB image. The color of the pixels corresponds to the direction of the motion. This view is useful for debugging and visualization purposes but should not be used as an estimation of the motion.