matlab 读取txt中的像素灰度值并显示为图片

clear all; mFID = fopen(‘C:\Users\WDJR\Desktop\rgba.txt’, ‘r’); y=textscan(mFID, '%d ‘) y=cell2mat(y); m=reshape(y,1920,1080); figure(1); colormap(gray(256)); image(m); ii=0;jj=0; for i=1:4:1920 ii=ii
相关文章
相关标签/搜索