Why is "ImageType" shown as "grayscale" when using "aviinfo"?
3 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Image Analyst
on 6 Jun 2011
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.
See Also
Categories
Find more on Read, Write, and Modify Image in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!