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
相關文章
相關標籤/搜索