Convert image to AVI
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello, I would like to get some suggestions about how to modify the attached code. Essentially, it is a part of a larger code aimed at segmenting and tracking focal adhesions. Since the function avifile has been replaced by writeVideo, the code does not work anymore. Could someone suggest how to modify it? I am currently using MATLAB_R2016b on a MacBook Pro Retina (running 10.12). Thank you in advance, Antonio
0 comentarios
Respuestas (2)
OCDER
el 18 de Sept. de 2017
Editada: OCDER
el 18 de Sept. de 2017
function [ output_args ] = images2Avi(searchstring, outfilename, fps, quality, width)
%IMAGES2AVI Summary of this function goes here
% quality 1..100
dirlist = dir(searchstring);
files = {dirlist.name};
inpath = dirlist.folder;
filename = fullfile(inpath, outfilename);
vidobj = VideoWriter(filename, 'Uncompressed AVI');
vidobj.FrameRate = fps;
vidobj.Quality = quality;
open(vidobj)
for k = 1:length(files)
im = imread(fullfile(inpath, files{k}));
%Insert other image-processing codes here
writeVideo(vidobj, imresize(im, [NaN width]));
end
close(vidobj)
0 comentarios
Ver también
Categorías
Más información sobre Convert Image Type en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!