hey i tried your code. But it showed an error,
??? Error using ==> aviread at 76
Unable to locate decompressor to decompress video stream
for the command:
mov = aviread(videoFile, 1:maxFrame);
but i got a solution for it, using mmreader....
readerobj = mmreader('tv cam-9.avi');
vidFrames = read(readerobj);
for k = 1 : maxFrame
mov(k).cdata = vidFrames(:,:,:,k);
mov(k).colormap = [];
end
nice work.... very thanks.. when i am trying to import another photos but it shows
??? Error using ==> horzcat
CAT arguments dimensions are not consistent.
Error in ==> CreateDatabase at 47
T = [T temp]; % 'T' grows after each turn
Error in ==> example at 26
T = CreateDatabase(TrainDatabasePath); how to clear this errors... any one help me to clear this error..........
Comment only