I was trying to save a video file in sequential jpeg files but stuck in the end when concatenate. Here is my program:
clear all;
mov = aviread('v1.avi');
for i=1:150
[im1,map] = frame2im(mov(i));
imshow( im1 );
imwrite(im1,'image' i .jpg'); % concatenate need here such as image1, image2
end
This program saves only one image. i need to concatenate the string "image" with the variable i to make the output as image1, image2, image3.... as the loop goes. Hope it make sense. Please help me!!! I need the solution ASAP.
clear all;
mov = aviread('v1.avi');
for i=1:150
[im1,map] = frame2im(mov(i));
imshow( im1 );
imwrite(im1,'image' i .jpg'); % concatenate need here such as image1, image2
end
This program saves only one image. i need to concatenate the string "image" with the variable i to make the output as image1, image2, image3.... as the loop goes. Hope it make sense. Please help me!!! I need the solution ASAP.