Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Extracting information from output

Asked by Lalit Patil

Lalit Patil (view profile)

on 20 Dec 2012

I am using

         info = imfinfo('Image2.png')

command for getting information about image..

and it gives following result..

               Filename: 'Image2.png'
               FileModDate: '14-Dec-2012 11:38:55'
                  FileSize: 180952
                    Format: 'png'
             FormatVersion: []
                     Width: 752
                    Height: 480
                  BitDepth: 8
                 ColorType: 'grayscale'
           FormatSignature: [137 80 78 71 13 10 26 10]

Now i want to extract only sixth and seventh line from it..

So, how to do..?

0 Comments

Lalit Patil

Lalit Patil (view profile)

Products

No products are associated with this question.

1 Answer

Answer by Walter Roberson

Walter Roberson (view profile)

on 20 Dec 2012
Accepted answer

info.Width and info.Height will have the values you are looking for.

0 Comments

Walter Roberson

Walter Roberson (view profile)

Contact us