您好,欢迎来到爱问旅游网。
搜索
您的当前位置:首页图像的读取,显示以及保存

图像的读取,显示以及保存

来源:爱问旅游网

%读取图像
image = imread(‘hunan.jpg’);
%显示图像
imshow(image)

f 1200x1077x3 3877200 uint8
%确定图像大小
size(f)

determine_size

ans =

    1200        1077           3

%将图像写到磁盘上
imwrite(f,’hunan.jpg’,’quality’,20)
%压缩并获得图像的其他详细信息
imfinfo hunan.jpg

compress_get_information

ans =

包含以下字段的 struct:

       Filename: 'D:\WorkSpaces\Matlab\hunan.jpg'
    FileModDate: '14-Sep-2018 21:42:10'
       FileSize: 197
         Format: 'jpg'
  FormatVersion: ''
          Width: 1077
         Height: 1200
       BitDepth: 24
      ColorType: 'truecolor'
FormatSignature: ''
NumberOfSamples: 3
   CodingMethod: 'Huffman'
  CodingProcess: 'Sequential'
        Comment: {}

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- awee.cn 版权所有 湘ICP备2023022495号-5

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务