views:

31

answers:

1

hi,

I want to retrieve Type, size, dimensions of an image in matlab.

+1  A: 

IMFINFO should show you the information you're looking for.

Here's the example from the Matlab help:

info = imfinfo('ngc6543a.jpg')

info = 

       Filename: [1x95 char]
    FileModDate: '01-Oct-1996 17: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]}
Jonas
yes I want to retrieve the Type, size, dimensions of the image and to display it in the static text.
Achraf
And that's what the function IMFINFO returns. Click on the link to see the details of the output.
Jonas