Reputation: 121
I have a problem with real time video processing. I want to access consequent frames (previous, current & next).
...
trigger(RawVideo)
cur_frame=getdata(RawVideo,1,'uint8');
imshow(cur_frame);
...
I can't access previous or next frame from this code though. Please help me.
Upvotes: 0
Views: 818
Reputation: 2296
If you're processing in "real time" you won't have access to the next frame. As for the previous frame, you'll have to create a buffer to store it in so when you process the current frame you may reference it. You could also make two buffers (the last two previous frames) and call the first previous frame "current", the current frame "next", and the second previous frame "previous". Maybe that helps?
Upvotes: 1