%Input file name is TOPGAL.jpg and i am converting it into grayscale:
%i am doing this with the help of push buttons in the GUI.
%input file – push button 1
axes(handles.axes1);
global im
[filename,pathname]=uigetfile('*'); % read the input image
im=imread([pathname,filename]);
%oupufile – push button 2
axes(handles.axes2);
im1=rgb2gray(im);
"" now how to save the output image with the name as TOPGAL_gray.jpg("original file name"_gray.jpg) directly without need to type it again"
THANKS…
Best Answer