image thumbnail
from Edge Detection,Color Find,Maximum Color in Image User Interface by Imran Akthar
User interface for edge detection,cropping,color determintation.,Maximum Occurence of Color in a Ima

load_file
function load_file
global gray_image;
global color_image;
global s;

delete *.mat;
clc;
clear all;
axes('position',[0.85 0.85, 0.15 0.15]);
a=imread('logo.jpg');
imshow(a)


buffer=pwd;
[file, pathname] = uigetfile('*.jpg','Load Image');
cd(pathname);
color_image=imread(file);%color image
cd(buffer);
a=size(color_image,3);
if (a>1)
    gray_image=rgb2gray(color_image);%Grayscale Image
end
      
 figure(2)
 imshow(color_image);
 save color_image; 
 save gray_image; 
 

Contact us at files@mathworks.com