Slit-scan video processing

version (2.8 KB) by Edgar Guevara
Create weird, wobbly, wonderful effects on a video, using slit-scan technique.


Updated 30 Sep 2013

View License

Process video simulating a slit-scan camera.
videoOut = slitscan(videoIn, nLinesPerScan, direction, nLoops, displayVideo, saveVideo)
fileName File name of the video to modify
nLinesPerScan Number of lines per scan. The less lines the smoother video
is. Default is 5.
direction Is the direction the delay increases in.
'BottomToTop' means that the bottom line is behind the top
by a number of frames equal to the height of the clip.
'TopToBottom' means that the top line is behind the bottom
by a number of frames equal to the height of the clip.
Default is 'TopToBottom'.
nLoops Number of times to repeat original video. Default is 1.
displayVideo Open a figure where the slit-scan video is played. Default
saveVideo Save the modified video as a new file '_slitscan' is added
to the file name. Default false.
videoOut Video structure
Copyright (C) 2013 Edgar Guevara Codina
File Version 1.0
September 27 2013
MATLAB ver (R2010a)
Online Demo:

Cite As

Edgar Guevara (2022). Slit-scan video processing (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!