Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试运行命令:
[face,MAP]=imread('face1.pgm');
但我得到一个空数组MAP。我能够成功地将文件数据读入face。
MAP
face
PGM是一种灰度图像格式。没有颜色图。你期待一个吗?imread如果文件不包含颜色图,则其正常行为是返回一个空的颜色图。
imread