MATLAB Answers

Translated by

이 페이지의 내용은 영어에서 자동 번역되었습니다. 자동 번역 기능을 해제하려면 "<a class="turn_off_mt" href="#">여기</a>"를 클릭하십시오.

0

Extracting Frames and resizing each frame

Asked by Iqra Saleem on 15 Feb 2019
Latest activity Commented on by Walter Roberson
on 17 Feb 2019
Hy, i convert YUV video file to frames but now i want to change size of every frames , how can i do that?
My code is:
clc; clear; close all;
VideoSequence = 'sampleQCIF.yuv';
width = 176;
height = 144;
nframes = 300;
[Y,U,V] = yuvRead(VideoSequence, width, height, nframes);
figure;
c = 0; % counter
for iFrame = 1:10
c = c + 1;
subplot(4,5,c),
imshow(Y(:,:,iFrame));
title(['frame #', num2str(iFrame)]);
end

  6 Comments

i already convert YUV video to frames but unable to open in laptop. any solution?
Name Size Bytes Class Attributes
RGB 1x1 1 uint8
columns 1x1 8 double
grayImage 1x1 1 uint8
rows 1x1 8 double
This is about class.
sorry, my problem is different.
I attached original Matlab code and also output.
This code extract frames from YUV video precisley, but when i save those frames in laptop folder,they are not opening.
kinfly check my attach code and output.

Sign in to comment.

Tags

1 Answers

Answer by KALYAN ACHARJYA on 15 Feb 2019
Edited by madhan ravi
on 15 Feb 2019

Frames are images use the following, read here imresize
frame_resize=imresize(frame_names,scaling_value)
For multiple frames, you can call those and do the same. Also similar question answer is available, please look here, still unable to solve it, let me know.

  15 Comments

That error message does not correspond to the code you show.
oh sorry, now again check attachments.
Why did you remove the basefilename / fullfile code ? You are now specifying the name of a folder as the only output location. MATLAB will not be able to automatically figure out what file name to output to by guessing that you want to use the same output file name as the last file you input: you need to tell it the output file name.
I am not going to bother to type in the repaired code for you by reading your code off of your image. If you continue to have problems with this, post your code as code.

Sign in to comment.



Translated by