0

How can I create an avi video in Matlab using the VideoWriter class, but defining its content pixel by pixel?

Having the original pixel by pixel, line by line information, is there any way to implement this on Videowriter when using open?

Heikki
  • 335
  • 1
  • 4
  • 9
  • What do you mean "pixel by pixel"? You can certainly write single *frames* in a loop. – nkjt Oct 11 '14 at 12:17

1 Answers1

1

Use im2frame, something like

myVideo  = VideoWriter('c:\temp\myVideo.avi');
open(myVideo);
writeVideo(myVideo ,im2frame(rand(20,20,3)));
close(myVideo);
Kostya
  • 1,552
  • 1
  • 10
  • 16