(matlab)自定义图像(matlab)
clc;
clear all;
A=[0 230
255 60
30 100];
A=uint8(A);
imshow(A,'InitialMagnification','fit')
如图:
clc;
clear all;
R=[255 30 230
255 0 100
0 200 0];
G=[0 80 220
255 255 50
0 35 0];
B=[0 200 15
255 0 190
0 70 255];
RGB(:,:,1)=R;
RGB(:,:,2)=G;
RGB(:,:,3)=B;
RGB=uint8(RGB);
imshow(RGB,'InitialMagnification','fit')