ArticleslgStudy

computer science

Motion compensation

Motion compensation is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Motion compensation rather than just read about it. In short: Motion compensation in computing is an algorithmic technique used to predict a frame in a video given the previous and/or future frames by accounting for motion of the camera or objects in the video. It is employed in the encoding of video data for video compression, for example, in the generation of MPEG-2 files.

Motion compensation — main illustration
Motion compensation — illustration

Key takeaways

  • Motion compensation belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Motion compensation to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Motion compensation from memory before moving on to harder problems.

Reference excerpt

Motion compensation in computing is an algorithmic technique used to predict a frame in a video given the previous and/or future frames by accounting for motion of the camera or objects in the video. It is employed in the encoding of video data for video compression, for example, in the generation of MPEG-2 files. Motion compensation describes a picture in terms of the transformation of a reference picture to the current picture. The reference picture may be previous in time or even from the future. When images can be accurately synthesized from previously transmitted/stored images, the compression efficiency can be improved. Motion compensation is one of the two key video compression techniques used in video coding standards, along with the discrete cosine transform (DCT). Most video coding standards, such as the H.26x and MPEG formats, typically use motion-compensated DCT hybrid coding, known as block motion compensation (BMC) or motion-compensated DCT (MC DCT).

Functionality Motion compensation exploits the fact that, often, for many frames of a movie, the only difference between one frame and another is the result of either the camera moving or an object in the frame moving. In reference to a video file, this means much of the information that represents one frame will be the same as the information used in the next frame. Using motion compensation, a video stream will contain some full (reference) frames; then, the only information stored for the frames in between would be the information needed to transform the previous frame into the next frame.

Illustrated example The following is a simplistic illustrated explanation of how motion compensation works. Two successive frames were captured from the movie Elephants Dream. As can be seen from the images, the bottom (motion compensated) difference between two frames contains significantly less detail than the prior images, and thus compresses much better than the rest.

MPEG In MPEG, images are predicted from previous frames (P frames) or bidirectionally from previous and future frames (B frames). B frames are more complex because the image sequence must be transmitted and stored out of order so that the future frame is available to generate the B frames. After predicting frames using motion compensation, the coder finds the residual, which is then compressed and transmitted.

Global motion compensation In global motion compensation, the motion model basically reflects camera motions such as:

Dolly — moving the camera forward or backward Track — moving the camera left or right Boom — moving the camera up or down Pan — rotating the camera around its Y axis, moving the view left or right Tilt — rotating the camera around its X axis, moving the view up or down Roll — rotating the camera around the view axis It works best for still scenes without moving objects. There are several advantages of global motion compensation:

It models the dominant motion usually found in video sequences with just a few parameters. The share in bit-rate of these parameters is negligible. It does not partition the frames. This avoids artifacts at partition borders. A straight line (in the time direction) of pixels with equal spatial positions in the frame corresponds to a continuously moving point in the real scene. Other MC schemes introduce discontinuities in the time direction. MPEG-4 ASP supports global motion compensation with three reference points, although some implementations can only make use of one. A single reference point only allows for translational motion, which, for its relatively large performance cost, provides little advantage over block-based motion compensation. Moving objects within a frame are not sufficiently represented by global motion compensation. Thus, local motion estimation is also needed.

Motion-compensated DCT

Block motion compensation

… excerpt ends here. Continue reading the full article.

Illustrations

Motion compensation: Visualization of MPEG block motion compensation. Blocks that moved from one frame to the next are shown as white arrows, making the motions of the different platforms and the character clearly visible.
Visualization of MPEG block motion compensation. Blocks that moved from one frame to the next are shown as white arrows, making the motions of the different platforms and the character clearly visible.
Motion compensation illustration
Motion compensation illustration
Motion compensation illustration

Worked examples

Example 1 — a first encounter with Motion compensation

Start with the simplest possible case. Write down what Motion compensation claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Motion compensation before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Motion compensation ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Motion compensation

In research
Motion compensation appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Motion compensation in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Motion compensation is common in secondary-school and first-year university syllabi. It links to neighbouring topics Data compression, Film and video technology, H.26x, so understanding it makes those chapters shorter.
In everyday life
Look for Motion compensation outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Motion compensation” →

How to study Motion compensation in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Motion compensation means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Motion compensation out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Motion compensation in simple terms?

Motion compensation in computing is an algorithmic technique used to predict a frame in a video given the previous and/or future frames by accounting for motion of the camera or objects in the video. It is employed in the encoding of video data for video compression, for example, in the generation…

Why does Motion compensation matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Motion compensation?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Motion compensation.

Tags

  • Data compression
  • Film and video technology
  • H.26x
  • Motion in computer vision
  • Video compression

Keep exploring