Correct Scale - will correct for zoom
2. Select the smoothness (greater than 1.0) that is used to smooth the frame sequence.
At 1.0 frames will be kept stable with no adjustment. Thus if the video
sequence has global movement that leads the image to the extreme right
the video stabilization will eventually cause the video to disappear.
At high numbers 5.0+ the video sequence will update very abruptly and
essentially invalidate any smoothing that would be performed. Thus if
your video has many twists and turns a number above 1.1 should probably
be used otherwise quick turns can cause a large amount of the stabilized
video to be offscreen.
Examples
The examples show video taken while walking with a camera through a couple different environments. No
effort during the filming of these videos was taken to stabilize the video and thus the individual
steps taken during the filming are evident in the video. Each video shows the original images
on the left side whilst the stabilized video is on the right side. Note the black areas around
the images in the stabilized video. These are the offscreen parts of the image that are
created due to stabilizing the video. Whenever video is stabilized the current image needs to be
realigned with the previous image. This alignment process may cause most of the image to be offscreen
and thus black areas are used to fill in the remaining area.
Note the example robofile below that can be used to process your own videos, or simply delete
the Media Reader module and switch on the camera to perform this stabilization processing live on
your webcam! Note that the videos below show the stabilization process at frame rate, i.e. stabilization
is performed while video is recording!
Indoor corridor scene.
Outdoors pathway forward.
Outdoors pathway reverse.
Click here
to load how we created the above videos. Once loaded double click on the first module (Media Reader)
and specify a video to stabilize. Press the Start button in that interface to start the stabilization
process and then click on the Mosaic module to see the rendered results. (Note that clicking on
individual modules shows the processing up to that point including that module.)
Variables
STABILIZE_X - contains the horizontal offset applied to stabilize the video
STABILIZE_Y - contains the vertical offset applied to stabilize the video
STABILIZE_ROTATION - contains the degree of rotation to stabilize the video
STABILIZE_SCALE - contains the scale amount applied to stabilize the video
For more information
SteadyHand
Microsoft Research - Full-frame Video Stabilization
StableEyes Video Stabilizer