From: rc3002 C on 12 Aug 2010 18:28 Hi, I'm reading AVI files into Matlab. I've encountered something strange - the movies are in grayscale format, but when loaded into Matlab, each frame appears like it is composed of R,G,B, where the three matrices are identical for each frame. I worked on the frames, and removed the redundant G,B frames for each frame (I also added a gray color map as needed for each frame if it is not RGB). After saving it again using MOVIE2AVI I've got a file which is third in size relative to the original. Well, it may not be a Matlab issue, but when saving a gray scale AVI file with some CODEC, is it saved with R,G,B values per each frame even for gray scale images? I would assume that it should only save one color map (because it is the same for each frame) and one matrix per frame.
|
Pages: 1 Prev: Turning a matrix to a single vector ? Next: Data Acquisition Toolbox 2.16 Windows 7 64 bits |