does the colour map of a gray scale image change after dct compression?if so, then please provide the matlab code for restoring the colour map after compression.

1 次查看(过去 30 天)
i am currently working on a project on video compression.the video has been split into a series of image frames.those image frames can be joined to get back the video.however the video cannot be obtained from those images after performing dct compression on those image frames.while doing so i am getting an error regarding colormap. can you please suggest a proper matlab code by the help of which these series of dct compressed images can be joined to form a video? thank you.

回答(1 个)

Walter Roberson
Walter Roberson 2014-4-9
What error are you getting?
DCT does not change the colormap.You do, however, need to be careful about whether you are using uint8 or double precision numbers.
  2 个评论
Walter Roberson
Walter Roberson 2014-4-9
See the example about AVI from animation at http://www.mathworks.com/help/matlab/ref/videowriterclass.html
Note that what you would be joining is the reconstructed images. If you are trying to effectively do the compression yourself, then if you want other programs to be able to read the movie then you will need to attend to all the details of creating the movie file.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Read, Write, and Modify Image 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by