Converting a .tiff sequence to a .avi video file

32 visualizaciones (últimos 30 días)
Dries van Roovert
Dries van Roovert el 4 de Nov. de 2016
Comentada: Dries van Roovert el 7 de Nov. de 2016
Hello everyone,
I collect uint16 arrays from .tiff images.
I want to convert these images uncompressed to an .avi video-file.
Does anyone know how to do this?
Kind regards,Dries

Respuesta aceptada

Geoff Hayes
Geoff Hayes el 4 de Nov. de 2016
Editada: Geoff Hayes el 4 de Nov. de 2016
Dries - consider using the VideoWriter object. A couple of very basic examples can be found at the given link or at writeVideo, but you should be able to extend them for your purposes. For example,
v = VideoWriter('newfile.avi','Uncompressed AVI');
open(v);
for k=1:10 % assumes 10 images to write to file
writeVideo(v,randi(255,100,200,'uint8'));
end
close(v);
  5 comentarios
Geoff Hayes
Geoff Hayes el 4 de Nov. de 2016
Editada: Geoff Hayes el 4 de Nov. de 2016
Right! I thought that was only in the Image Processing Toolbox but it looks like it now is part of the core app. I really should upgrade from r2014a!
Dries van Roovert
Dries van Roovert el 7 de Nov. de 2016
Thanks for helping guys! it works really well

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by