作者在 2008-06-22 18:08:45 发布以下内容
% It depends on your RAW data format. % Try this example:
function raw(dim1,dim2) [filename pathname] = uigetfile('*.raw','Please select a RAW file'); fid = fopen([pathname filename],'rb','ieee-be'); shift = fseek(fid, -dim1*dim2*4,'eof'); img = fread(fid,[dim2, dim1],'float32'); imshow(img, []); status = fclose(fid); |