Seraphli / MATLAB-IVC

A set of MATLAB scripts for conversion between video files and images.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MATLAB-IVC

MATLAB Image Video Convert (MATLAB-IVC) provide a set of scripts for conversion between video files and images.

Scripts is developed to be used in MATLAB.

Please read demo scripts before using these code.

Examples of converting images to a video file is listed in f2v_demo.m.

Examples of converting a video file to images is listed in v2f_demo.m.

Examples

Images convert to a video file

clc;clear;
opt = ivc.opt();
opt.F_Path      = 'select';
opt.FPS         = 20;
opt.F_Format    = '%04d.jpg';
ivc.f2v(opt);

A video file convert to images

clc;clear;
opt = ivc.opt();
opt.V_Name    = 'input';
opt.F_Format  = '%04d.jpg';
ivc.v2f(opt);

Notice

  • If setting changes, you need to clear the environment of MATLAB.
  • You should at least provide one parameter for each option.
  • If you want to use scripts outside of this folder, you can follow the instruction in startup.m.

License

MATLAB-IVC is released under the MIT license.

About

A set of MATLAB scripts for conversion between video files and images.

License:MIT License


Languages

Language:MATLAB 100.0%