图像显示问题
function raw(dim1,dim2)[filename pathname] = uigetfile('*.raw;*.bmp','Please select a RAW file');
fid = fopen([pathname filename],'rb','ieee-be');
shift = fseek(fid, 0,'bof');
img = fread(fid,[dim1,dim2],'uchar');
imshow(img, [0 255]);
status = fclose(fid);
上面的函数来调用图像显示,发现不管 raw还是bmp图像,总是倒了90°!!