BIL文本数据

T = readtable('BIL.txt');
b = table2array(T);
% b = cast(b, 'uint8');
[h,w] = size(b);
x = [1 w]
y = [1 h/3]

R = b(1:3:h,:);
G = b(2:3:h,:);
B = b(3:3:h,:);
% G = []
% B = []

C = zeros(h/3,w,3);
C(:,:,1) = R;
C(:,:,2) = G;
C(:,:,3) = B;
C = cast(C, 'uint8');
image(x,y,C)
% imshow(image);

posted @ 2021-09-19 21:17  Timor88  阅读(51)  评论(0)    收藏  举报