How to resize video
조회 수: 176(최근 30일)
Image Analyst 2017년 1월 31일
See my attached demo. In the loop over frame, just resize the frame just read in and write it out with writeVideo(). If you can't figure it out, let me know what frame size you want your output in.
Takuji Fukumoto 2017년 1월 30일
imresize function is fine. Here is the example.
vidobj = vision.VideoFileReader('moviename')
viewer = vision.DeployableVideoPlayer;
A = step(vidobj);
viewframe = imresize(A,0.5);
Takuji Fukumoto 2017년 1월 31일
I think you can write like this
In this example, imresize is used in function. https://jp.mathworks.com/help/releases/R2016b/vision/examples/tracking-pedestrians-from-a-moving-car.html?lang=en
Abdullah Amer Mohammed Salih 2020년 11월 24일
Thanks for your code, I need to change video in dimentions means the video for example is 100 x 100 it will be 30 x30. that is a liniear transformation.
I also need to change the shape of the video means I change it from rectangle to polygon for example. any clue how I do that?