clc; clear; close all; [filename,pathname]=uigetfile({'*.*','All Files (*.*)'},'Pick a file'); file = strcat(pathname,filename); % raw图的尺寸 row = 30; col = 72; % 读图 所读raw图为8位 fid=fopen(file, 'r'); Bayer=fread(fid,[row,col],'uint8'); fclose(fid); % 转换到