Crop .avi file

조회 수: 13 (최근 30일)
Katrina German
Katrina German 2021년 5월 8일
댓글: David Gill 2022년 11월 22일
Hi,
I'm have a video .avi file that i want to crop for these dimensions: 767 410 166 165. This is the code I have now but I keep getting a error. I've learned that I can't do it with VideoReader or vision.VideoReader. Any suggestions are welcomed.
vid=VideoReader('bubbles.mov','Tag', 'My object');
vid_croppped=vid('767 410 166 165')

답변 (1개)

Image Analyst
Image Analyst 2021년 5월 8일
See attached example and make the obvious simple modifications.
Write back if you can't figure it out.
  댓글 수: 12
Image Analyst
Image Analyst 2022년 11월 22일
@David Gill you were supposed to modify the demo. You were supposed to realize that the resizing line in the demo is not what you want and to delete that line. If you do that there will be no change in resolution, only that the output video will be three lines shorter vertically.
David Gill
David Gill 2022년 11월 22일
Ah I see. thank you for clarifying.

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

카테고리

Help CenterFile Exchange에서 Image Processing and Computer Vision에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by