I am working on pattern recognition project and currently in GUI creation phase. I would like to have a pushbutton that is able to perform the following command once the pushbutton is clicked:
a = imread(image_name);
b = rgb2gray(a);
glcm = graycomatrix(b);
glcm (:);
May I know what function should I use to program the pushbutton? Your help is greatly appreciated.
Thank you.