MATLAB中图像的类型,大小,尺寸

Ach*_*raf 3 matlab image-processing

如何在MATLAB中检索图像的类型,大小和尺寸?

Jon*_*nas 11

IMFINFO应该向您显示您正在寻找的信息.

以下是MATLAB帮助中的示例:

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]}
Run Code Online (Sandbox Code Playgroud)