I have a video and I am doing some processing on the frames of video in matlab. After that the frames are compiled and a video is made by using those processed frames. There are about 300 frames in the video. As processing is quite heavy so my computer freezes. I just don't want to show those processed frames rather I want that those frames should be stored in another mfile. I know the commands like saveas or set(gcf,'visible','off') but they don't work in my case. What I have so far:
obj = aviread('highwayvideo.avi');
imi = getframe(gcf);
aviobj = addframe(aviobj,imi);
aviobj = close(aviobj);
Any help would be highly appreciated.