Why is "ImageType" shown as "grayscale" when using "aviinfo"?

3 次查看(过去 30 天)
When I use the 'aviinfo' function to show information about a given .avi file, the image type is always shown as "grayscale". If I play the avi file in any player, it certainly isn't monochrome. So why does Matlab see it as such? I want to use 'aviread' to capture frames from my avi file. However, the captured frames have no colormaps and are 2-dimensional matricies. I have even tried recording an avi file on a computer that has the 24-bit colorscheme, which is what 'aviread' claims to support. However, the frames still show as grayscale. What am I doing wrong? Thanks for your time.

回答(1 个)

Image Analyst
Image Analyst 2011-6-6
My avi file (the rhinos.avi movie that ships with MATLAB) shows ImageType: 'truecolor' so I guess yours must be some kind of pseudocolored (indexed) movie - a grayscale movie that has an associated colormap. You can post your movie to your favorite sharing web site if you want people to take a look at it.
  1 个评论
Steven Evans
Steven Evans 2011-6-6
Thanks for your response. I have uploaded a copy of an .avi test file that I made using a screen recorder. The file can be downloaded at
http://www.4shared.com/video/K8ysx7US/testfile.html
It's called 'testfile.avi'. Just as before, this file shows up as "grayscale" when using 'aviinfo'. Any more help that you may be willing to provide is greatly appreciated. Thanks for your time.

请先登录,再进行评论。

类别

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