Crop .avi file

10 次查看(过去 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