How to convert video into Frames

조회 수: 1 (최근 30일)
vijay chander
vijay chander 2014년 2월 12일
편집: vijay chander 2014년 2월 25일
Hi sir
I'm doing a project on histogram equalization of videos for that i need to convert videos into images(Frames) so that i can apply histogram techniques on images and again i convert back into video of avi format.
please help me sir i am using matlab version R2010a
Thankyou...
  댓글 수: 2
Image Analyst
Image Analyst 2014년 2월 18일
That could give a very odd looking video. At the very least you'd want to do it only on the L or V channel, not on R, G, and B separately.
vijay chander
vijay chander 2014년 2월 24일
편집: vijay chander 2014년 2월 25일
Thanks but the problem i'm facing is i cant able to read vido into matlab im getting the error saying that the following codec is missing on ur computer h 264 i cant understand whats this i cant able to figure it out im running out of time please help me about this Thank you

댓글을 달려면 로그인하십시오.

채택된 답변

David Young
David Young 2014년 2월 12일
Is it possible for you to upgrade to version 2010b or later? If so, you could use VideoReader.
vreader = VideoReader(vidfile);
frames = 1:vreader.NumberOfFrames;
for f = frames
try
im = vreader.read(f);
catch err
<error processing>
end
<image processing>
end
  댓글 수: 5
David Young
David Young 2014년 2월 21일
I think MathWorks support is the best bet then. You might be able to work out how to download the missing codecs, but I can't really help with that, sorry.
David Young
David Young 2014년 2월 21일
I think MathWorks support is the best bet then. You might be able to work out how to download the missing codecs, but I can't really help with that, sorry.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Urmila
Urmila 2014년 2월 12일
you can use mmreader(filemame) function. see matlab documentation on mmreader function.
  댓글 수: 1
vijay chander
vijay chander 2014년 2월 12일
im getting this error
>> mmreader('C:\vijay\Wildlife.avi')'; ??? Undefined function or method 'mmreader' for input arguments of type 'char'.

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by