imshow显示旋转的图像 [英] imshow shows rotated image

查看:70
本文介绍了imshow显示旋转的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Matlab在视频序列中显示帧,下面是我的代码:

I'm using Matlab to show the frames in a video sequence , below is my code:

seq=sprintf('walk%d.avi',v);   % video's name
videoReader = vision.VideoFileReader(seq);
vidObj = VideoReader(seq);
numFrames = vidObj.NumberOfFrames
for i = 1:numFrames 
    frame = step(videoReader); % read the next video frame
    imshow(frame)
end

实际上,它以前可以很好地工作,而且我不知道什么时候以及什么原因导致它显示旋转的图像.希望你们能帮助我.谢谢你.

Actually it worked fine previously, and i have no idea since when and what caused it to show rotated image . Hope you guys can help me. thank you.

推荐答案

用于垂直翻转框架的最新更新的Matlab函数是:

Most updated Matlab function to vertically flip back the frame is:

FlippedFrame = flip(frame,1);

这篇关于imshow显示旋转的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆