- 使用座標軸axes來設置圖像的顯示位置,同時需要將axes放在一個面板panel內部,否則圖像會超出axes區域範圍。
顯示一張圖片:
I=imread('picture.jpg');
axes(handles.axes1);
imshow(I);
顯示多張圖片:
a=imread('1.jpg');
subplot(1,2,1);
imshow(a);
b=imread('2.jpg');
subplot(1,2,2);
imshow(b);
設置效果:
顯示一張圖片:
I=imread('picture.jpg');
axes(handles.axes1);
imshow(I);
顯示多張圖片:
a=imread('1.jpg');
subplot(1,2,1);
imshow(a);
b=imread('2.jpg');
subplot(1,2,2);
imshow(b);
設置效果: