I am trying to make a movie from a set of sequential images using the code below.
However I am getting an error message:
"Error using im2frame
Indexed movie frame must have a non-empty colormap"
"Error in movie (line 13)
Please is there some words i forgot to add to the line13?
Thanks for your help in advance
ImageFolder = ('C:\Work\2015 CA\Contour\Von Mises');
TiffFiles = dir(strcat(ImageFolder,'\*.tiff'));
S = [TiffFiles(:).datenum]
[S,S] = sort(S);
TiffFilesS = TiffFiles(S)
VideoFile = strcat(ImageFolder,'\Video');
writerObj = VideoWriter(VideoFile);
writerObj.FrameRate = 10;
for t= 1:length(TiffFilesS)
Frame = imread(strcat(ImageFolder,'\',TiffFilesS(t).name));