Programming |
Getting Information About Graphics Files
If you have a file in a standard graphics format, use the imfinfo
function to get information about its contents. The imfinfo
function returns a structure containing information about the file. The fields in the structure vary with the file format but imfinfo
always returns some basic information including filename, last modification date, file size, and format.
This example returns information about a file in Joint Photographic Experts Group (JPEG) format:
info = imfinfo('ngc6543a.jpg') info = Filename: [1x57 char] FileModDate: '01-Oct-1996 16:19:44' FileSize: 27387 Format: 'jpg' FormatVersion: '' Width: 600 Height: 650 BitDepth: 24 ColorType: 'truecolor' FormatSignature: '' NumberOfSamples: 3 CodingMethod: 'Huffman' CodingProcess: 'Sequential' Comment: {[1x69 char]}
Working with Graphics Files | Importing Graphics Data |
© 1994-2005 The MathWorks, Inc.