I performed two opertaions, im2bw and rgb2gray with the help of push buttons.
I get the converted images to be displayed in the axes2. I want to save the image that is in the axes, it may be gray image or bw image, which ever operation is recently done…
I used the following code:
global grayimage global bwimage im2=getimage(handles.axes2);if im2==grayimage im3 = im2;else if im2==bwimage im3=im2; endend imwrite(im3, outputFullFileName);
I am facing error as
Error using == Matrix dimensions must agree. Error in manual>savefinal_Callback (line354)if im2==grayimage
i don't want to use f=getframe(handles.axes2); because the image quality gets reduced.
Any suggestions please…
Best Answer