필터 지우기
필터 지우기

How to find the frames resolution ina video?

조회 수: 1 (최근 30일)
Gn Gnk
Gn Gnk 2020년 12월 30일
답변: Walter Roberson 2020년 12월 30일
Hello i am trying to find the resolution of each frame in a video .I tried this :
FrameRes=read(V,1); %randomly select the first frame of the video
But i am not sure if this is right . In matlab's workspace i get the result 240x320x3 .Is this correct?
Also , i tried to print message with the result i got like this :
fprintf('The resolution of each frame is %0.4f\n',FrameRes);
but it prints the whole vector (as it should do) . How can i print only resolution i found?

답변 (1개)

Walter Roberson
Walter Roberson 2020년 12월 30일
If you are working with a file rather than a stream:
https://www.mathworks.com/help/matlab/ref/mmfileinfo.html

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by