UNIT-5 Introduction to video processing
UNIT-5 Introduction to video processing
Dr. Y. N. Thakare
CSE(AIML)
RCOEM, Nagpur
Video
• Analog video is represented as a continuous (time-
varying) signal
denote the coordinates of an object point at times t and t’ with respect to the center of rotation, respectively
Geometric Image Formation
Perspective Projection
• Perspective projection reflects image formation using an ideal
pinhole camera according to the principles of geometrical optics.
Thus, all the rays from the object pass through the center of
projection, which corresponds to the center of the lens. For this
reason, it is also known as “central projection.”
Orthographic Projection
• Orthographic projection is an approximation of the actual imaging
process where it is assumed that all the rays from the 3-D object
(scene) to the image plane travel parallel to each other. For this
reason it is sometimes called the “parallel projection.”
Motion Estimation
• Motion estimation is a process used in video processing to
determine the motion of objects within a video sequence. It
involves analyzing the changes in pixel values between frames of
a video to estimate the motion of objects within the scene.
• Motion estimation is an important step in many video processing
applications such as video compression, video stabilization, and
object tracking.
• By accurately estimating the motion of objects within a video, it
becomes possible to identify and track moving objects, remove
camera motion, and compress video data by only transmitting the
changes between frames instead of transmitting the entire frame.
• There are various techniques used for motion estimation, including
block matching, optical flow, and phase correlation. These
methods involve comparing the pixel values in different frames to
estimate the motion of objects between them. The accuracy of the
motion estimation depends on the quality of the video data and the
complexity of the motion within the scene.
Optical Flow
• Optical flow is a popular technique used for motion estimation in
video processing. It involves estimating the motion of objects by
analyzing the changes in pixel intensity values between
consecutive frames in a video sequence.
• The basic principle behind optical flow is that each point in an
image moves in a particular direction between consecutive frames.
By calculating the direction and magnitude of this movement for
each pixel, it is possible to estimate the overall motion of objects
in the scene.
OPTICAL FLOW AND DIRECT METHODS
• Optical flow is the motion of objects between consecutive frames
of sequence, caused by the relative movement between the object
and camera. The problem of optical flow may be expressed as:
Sparse vs Dense Optical Flow
Lucas Kanade Algorithm
• The Lucas-Kanade algorithm is a widely used method for optical flow
estimation in video processing.
• Optical flow refers to the motion of objects in a video stream, and the Lucas-
Kanade algorithm is used to estimate the optical flow between successive
frames.
• The Lucas-Kanade algorithm works by assuming that the motion of each
pixel in the image can be described by a small motion vector. The algorithm
estimates the motion vector for each pixel by solving a system of linear
equations based on the intensity values of the pixels in the two frames.
• The algorithm is best explained with an example.
• Consider a simple scenario where a camera is capturing a video of
a car moving on a road. The Lucas-Kanade algorithm can be used
to estimate the optical flow of the car between two consecutive
frames.
• In the first frame, the car appears as a collection of pixels with
certain intensity values. In the second frame, the car has moved
slightly, and the intensity values of the pixels have changed. The
Lucas-Kanade algorithm estimates the motion of each pixel by
assuming that the motion can be described by a small motion
vector.
Car example
• The algorithm first selects a small window around each pixel in
the first frame. The size of the window is typically around 3x3 or
5x5 pixels. The algorithm then searches for the corresponding
window in the second frame, which should contain the same pixel
as the first frame but with different intensity values due to motion.
• The Lucas-Kanade algorithm then solves a system of linear
equations based on the intensity values in the two windows to
estimate the motion vector. The system of equations is based on
the assumption that the pixel intensities in the two windows are
related by a linear function of the motion vector.
• The Lucas-Kanade algorithm repeats this process for all the pixels in
the image to estimate the optical flow of the car between the two
frames. The estimated optical flow can be visualized as a set of motion
vectors, with each vector representing the estimated motion of a single
pixel.