5.6.1 其他格式图形读取命令imread
imread命令用于读取多种存储格式的图形文件,返回的数据有两种:一种是图形数据,另一种是图形颜色数据。调用格式如下

MATLAB能够读取的图形格式主要有如下一些:
1)bmp——Windows Bitmap。
2)JPG或JPEG—Joint Photographic Experts Group。
3)PNG——Portable Network Graphics。
4)GIF——Graphics Interchange Format。
5)PBM——Portable Bitmap。(https://www.daowen.com)
6)RAS——Sun Raster。
7)HDF4——Hierarchical Data Format。
8)PCX——Windows Paintbrush。
9)TIFF——Tagged Image File Format。
10)ICO——Icon File。
11)PGM——Portable Graymap。
12)XWD——X Window Dump。
示例如下:
