matlab读取二进制数据到图像矩阵
clear all fid=fopen('./dumpdata/100_mask_224x224.gray','rb'); num = 224*224; [row_array, ele_count]=fread(fid,num,'uint8'); fclose(fid); a=reshape(row_array,224,224); a = uint8(a); figure; imshow(a);
clear all fid=fopen('./dumpdata/100_mask_224x224.gray','rb'); num = 224*224; [row_array, ele_count]=fread(fid,num,'uint8'); fclose(fid); a=reshape(row_array,224,224); a = uint8(a); figure; imshow(a);