changing the resolution of video frame

조회 수: 16 (최근 30일)
nadia naji
nadia naji 2013년 2월 9일
댓글: Image Analyst 2019년 9월 30일
i have some videos with different resolution but for some computing reason i need to change the resolution of them to same on for example 240x320. how can i do this? please help me?
  댓글 수: 1
Sagar Shriram Salwe
Sagar Shriram Salwe 2019년 9월 27일
Hello,
To modify the quality of video is done by changing the quality of the video as per that
Control size of output video file
Specify the output video quality as an integer in the range [0,100]. Increase this value for greater video quality. However, doing so increases the file size. Decrease the value to lower video quality with a smaller file size.
The Quality property only applies when you are writing MPEG4 video files (on Windows or Mac) or when you are writing MJPEG-AVI video only files on a Mac or Linux.
It is there in https://in.mathworks.com/help/releases/R2016a/vision/ref/vision.videofilewriter-class.html

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

채택된 답변

Image Analyst
Image Analyst 2013년 2월 9일
Yes, just use imresize().
  댓글 수: 2
nadia naji
nadia naji 2013년 2월 9일
thank you i really appreciate your help
Image Analyst
Image Analyst 2019년 9월 30일
Attached is a demo that does it automatically for however many frames you have in your video, and builds a resized movie as it goes along.

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

추가 답변 (1개)

Sagar Shriram Salwe
Sagar Shriram Salwe 2019년 9월 30일
편집: Sagar Shriram Salwe 2019년 9월 30일
The simplest method to solve this i find out:
Just go to figure created by imagesc
Open file >Export setup and change the size from auto to expected size required.
Suppost 1920x1024 points and save this configuration and again rerun the .m file without closing image.
The expected changes required for high resolution will get obtained after doing this.
Hope this will help

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by