You are here : matlabImage Processingimfinfo

imfinfo() - Image Processing

info = imfinfo(filename) returns a structure whose fields contain information about an image in a graphics file, filename.

The format of the file is inferred from its contents.

  • If filename is a TIFF, HDF, ICO, GIF, or CUR file containing more than one image, then info is a structure array with one element for each image in the file. For example, info(3) would contain information about the third image in the file.

info = imfinfo(filename,fmt) additionally looks for a file named filename.fmt, if MATLAB® cannot find a file named filename.

info = imfinfo(URL) returns information about the image at the specified internet resource, URL.


Syntax

info = imfinfo(filename)example
info = imfinfo(filename,fmt)
info = imfinfo(URL)


Example

info = imfinfo('ngc6543a.jpg')
info = 

           Filename: 'matlabroot\toolbox\matlab\demos\ngc6543a.jpg'
        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: {'CREATOR: XV Version 3.00b  Rev: 6/15/94  Quality = 75, Smoothing = 0'}


Output / Return Value


Limitations


Alternatives / See Also


Reference