Quick start: Add tool's parent folder to MATLAB's search path and run movieMainDemo to analyse the traffic.mj2 movie, which is one of MATLAB's example files
This tool is intended to aid in analyzing movies taking in a physical experiment. A movie is defined by:
* A file name pointing to a movie file that can be read by MATLAB's VideoReader,
* the index of a first and last frame to allow selection of a portion of the movie file,
* an appropriate image class to convert movie images to, i.e. int16 or uint8,
* a cropping rectangle to allow selection of a region of interest (ROI) valid for all movie frames,
* the timing information describing when each frame of the movie was taken relative to a trigger,
* the pixel resolution to calibrate the pixel to length ratio and
* a scaling factor to upscale or downscale each image before post processing.
Currently, the tool offers several methods that can be applied to each frame of the movie, such as contrast adjustment, background subtraction, filtering, interpolation, ROI masking and arbitrary code snippets. The order of post processing can be chosen freely and each method can be setup by an interactive GUI. Post processing is supposed to be done frame by frame and in ascending order. This is done in case the post processing of a single frame depends on results from previous frame(s), e.g. in case of object tracking. Extending this tool by additional method can be realized easily within an object oriented approach.
* The tool is realized with an object-oriented approach, where movieMain is a class describing a movie, ppMethod is an abstract class describing a post processing method and several subclasses describing the actual image post processing methods. Have a look at ppFilter for an example.
* Movies are read by VideoReader and converted to either int16 or uint8 to take advantage of the Intel Integrated Performance Primitives (Intel IPP) library. RGB videos are converted to grayscale, since some methods, such as brightness and contrast adjustment are not implemented for RGB movies.
Alexander Klein (2024). Movie Post Processing Tool (https://www.mathworks.com/matlabcentral/fileexchange/43894-movie-post-processing-tool), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Small bug fixes to support new graphics system of MATLAB
- improved speed (change in access of class properties)
* fixed error introduced with previous update
* minor bug fixes