필터 지우기
필터 지우기

How to use imagesc and videowriter

조회 수: 4 (최근 30일)
MSP
MSP 2017년 12월 9일
댓글: MSP 2017년 12월 11일
Consider that we have multiple images to be shown by imagesc in a loop,How to convert this to a mp4 sequence
  댓글 수: 2
Michal Dobai
Michal Dobai 2017년 12월 11일
What did you tried so far? Creating video from set of images shouldn't be a problem. Whole process is well described in MATLAB documentation.
So if I understand correctly, your problem might be about how to get image from your data (with same colors) as it's displayed by imagesc. Is that right? Documentation says:
imagesc (C) displays the data in array C as an image that uses the full range of colors in the colormap. Each element of C specifies the color for 1 pixel of the image.
If you can create indexed image from your data then you can easily add this image as next frame to your video. (see documentation link above). Your image has to use the full range of colors in the colormap to get same results as with imagesc(). This link might help you with that: Save an intensity image created with imagesc with true resolution
With these information you should be able to solve your problem. If you have any questions, something is not clear enough, or you have problems with your code, feel free to ask me, I will try to help you.
MSP
MSP 2017년 12월 11일
Fixed my problem

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Blue에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by