MATLAB Answers

How do I generate a video from images that I create on MATLAB?

5 ビュー (過去 30 日間)
Amulya Kallakuri
Amulya Kallakuri 2017 年 6 月 11 日
コメント済み: Image Analyst 2019 年 11 月 17 日
I am generating a missile simulation input for which I created a sequence of images using an iterative for loop. The code starts with a single aerial image using which I have generated a sequence of images that make it seem like the image is rotating. I used campan, camzoom, camva and drawnow to consecutively display the sequence of images when I run the code. It looks like a video of an aerial image rotating when I run the code. My problem is, that I need to extract a video from these generated images, and save it on my computer to use as input for the missile simulator. Please help.

採用された回答

Image Analyst
Image Analyst 2017 年 6 月 11 日
  3 件のコメント
Amulya Kallakuri
Amulya Kallakuri 2017 年 6 月 13 日
Sir, this is one portion of the code I have. Now, I need to generate a similar video with the resultant images. Please help? Thank you.
A = imread('aerial.jpg');
imshow(A, 'InitialMagnification', 'fit')
camtarget([3300 1500 0])
for i = 10:-0.1:9
for j = 4:8
camzoom(j)
camva(i)
campan(1, 0)
drawnow
% imsave
end
end

サインインしてコメントする。

その他の回答 (1 件)

Stalin Samuel
Stalin Samuel 2017 年 6 月 11 日
  5 件のコメント
Image Analyst
Image Analyst 2019 年 11 月 17 日
There is a property of the video object created by VideoWriter that is FrameRate. Set it to the rate you want.

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by