我对实时视频处理有疑问。我想访问后续帧(上一个、当前和下一个)。
...
trigger(RawVideo)
cur_frame=getdata(RawVideo,1,'uint8');
imshow(cur_frame);
...
不过,我无法从此代码访问上一帧或下一帧。请帮我。
我对实时视频处理有疑问。我想访问后续帧(上一个、当前和下一个)。
...
trigger(RawVideo)
cur_frame=getdata(RawVideo,1,'uint8');
imshow(cur_frame);
...
不过,我无法从此代码访问上一帧或下一帧。请帮我。
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?