First and second images are displayed damaged
First original image
Second original image
I have two .bmp
images and I want to show them in two different axes in a Matlab GUI.
function pushbutton1_Callback(hObject, eventdata, handles)
[imagedata1 imagemap1] = imread('C0.bmp');
axes (handles.axes1);
imshow(imagedata1, imagemap1);
[imagedata2 imagemap2] = imread('C1.bmp');
axes (handles.axes2);
imshow(imagedata2, imagemap2);
When I run this code, only the second image looks like its original appearance. The first one looks damaged.
When I try this for more than two images, again only the last one looks like its original appearance and the others look damaged.
What is the reason of that? How could I solve this problem?