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.
0 个评论
回答(1 个)
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.
另请参阅
类别
在 Help Center 和 File 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!