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

2 visualizzazioni (ultimi 30 giorni)
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.

Risposte (1)

Image Analyst
Image Analyst il 6 Giu 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.
  1 Commento
Steven Evans
Steven Evans il 6 Giu 2011
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.

Accedi per commentare.

Categorie

Scopri di più su Read, Write, and Modify Image in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by