Skip main navigation

New offer! Get 30% off one whole year of Unlimited learning. Subscribe for just £249.99 £174.99. New subscribers only. T&Cs apply

Find out more

Visualising video

This article presents a set of video-based visualisation techniques developed for the analysis of music-related body motion.
8 abstract images of a dancer.

This article presents a set of video-based visualisation techniques developed for the analysis of music-related body motion.

Here in Music Moves, we present several different types of motion capture technologies. Many of these are excellent and work well for their purposes. However, video recording is most likely the most accessible “motion capture” technology for most people. Video cameras are nowadays readily available everywhere so that anyone can get started right away.

It may be odd to think that it is necessary to create visualisations of a video recording. After all, video is already a visual representation. However, watching a running video is not a very efficient way of analysing large sets of video recordings.

Motion images

When one works with motion analysis from video files, one of the most common techniques is creating a motion image. The motion image is found by calculating the absolute pixel difference between subsequent frames in a video file, as illustrated in the figure below. The result is an image in which only the pixels that have changed between the frames are displayed.

Motion image.

The quality of the raw motion image depends on the quality of the original video stream. Small changes in lighting, camera motion, compression artefacts, and so on can influence the final image. Such visual interference can be eliminated using a simple low-pass filter to remove pixels below a certain threshold or a more advanced “noise reduction” filter, as illustrated below. Either tool cleans up the image, leaving only the most salient parts of the activity in the motion.

Filtered motion image.

The filtered motion image video is usually the starting point for further processing and analysing the video material.

Motion-history images

A motion image represents the motion that takes place between two frames but does not represent a motion sequence that takes place over more frames. To visualise the motion over time, it is necessary to create a motion-history image. This is a display that keeps track of the history of what has happened over some recent frames. One approach is to average over all the frames in the recording. This produces what could be called an average image or a motion-average image, such as shown below.

Average image.

These images may or may not be interesting to look at, depending on the duration of the recording and the motion content. The examples above are made from a short recording that includes only one short passage and a raising of the right hand. The lift is very clearly represented in the motion-average image. In contrast, the average image mainly indicates that the main part of the body stayed more or less in the same place throughout the recording.

For longer recordings, in which there is more activity in larger parts of the image, the average images tend to be more “blurred”—indicating how the motion is distributed in space.

It is possible to combine the average image and the motion-average image to make the motion-history image easier to look at. An alternative is to add one frame (for example, the last frame) to the motion-average image. This makes it possible to combine a clear picture of the person in the frame with traces of the motion history, as illustrated below.

motion-history image.

Motion history images may be used to study performance technique. The figure below shows a visualisation of a percussion study. Here, each image represents an individual stroke on the drum pad. The image series serves as a compact and efficient visualisation of fourteen different strokes by the percussionist.

Fourteen images side by side of a Percussionist in action.

Each of the displays in the figure above represents around fifteen seconds of video material. As such, this figure is a very compact representation of a full recording session.

Motiongrams

The motion-history images above reveal information about a motion sequence’s spatial aspects, but there is no information about the motion’s temporal unfolding. Then a motiongram may be useful since it displays motion over time. A motiongram is created by averaging over a motion image, as illustrated in the figure below.

Schematic motiongram.

This figure shows a schematic overview of the creation of motiongrams based on a short recording of piano performance. The horizontal motiongram clearly reveals the lifting of the hands and some swaying in the body’s upper part. The vertical motiongram reveals the hands’ motion and the keyboard, here seen from the front, as in the previous figures.

One example of how motiongrams can be used to study dance performance can be seen below. This display shows motion-average images and motiongrams of forty seconds of dance improvisation by three different dancers moving to the same musical material (approx. forty seconds). A spectrogram of the musical sound is displayed below the motiongrams.

Motion average items and motiongrams of Dancers.

The motiongrams reveal spatiotemporal information that is not possible to convey using keyframe images. They facilitate the researcher’s ability to follow the trajectories of the hands and heads of the dancers throughout the sequences.

For example, the first dancer used similar motions for the three repeated excerpts in the sequence: a large, slow upwards motion in the arms, followed by a bounce. On the other hand, the third dancer had more varied motions and covered the whole vertical plane with the arms. Such structural differences and similarities can be identified in the motiongrams and then studied in more detail in the original video files.

Tools

  • VideoAnalysis.. A simple application that lets you import a video file, press a button, and get motion images, motiongrams, and more.
  • Musical Gestures Toolbox.. This toolbox is available for the programming environments Max, Matlab and Jupyter, and provides the building blocks for making many different types of video visualizations.

References

This article is from the free online

Motion Capture: The Art of Studying Human Activity

Created by
FutureLearn - Learning For Life

Reach your personal and professional goals

Unlock access to hundreds of expert online courses and degrees from top universities and educators to gain accredited qualifications and professional CV-building certificates.

Join over 18 million learners to launch, switch or build upon your career, all at your own pace, across a wide range of topic areas.

Start Learning now