Video to frame conversion
1 回表示 (過去 30 日間)
古いコメントを表示
I am trying to convert a video file to image files using readFrame function. I was successful in extracting frames from video but each frame the halves were interchanged as shown in figure (2). Fig. 1 is a snapshot of video. Can anybody please help me with this?. My code is:
clc
clear all
close all
video_input =VideoReader('single.avi');
vid = readFrame(video_input);
imshow(vid)
FIGURE 1
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/215656/image.jpeg)
FIGURE 2
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/215657/image.jpeg)
2 件のコメント
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!