from
Machine Vision System - Color Recognition
by Vihang Patil
This gui is a demonstration on the concept of machine vision system for color recognition
|
| model_color(color,delay)
|
%returns image of the model who corresponds to the color
function model_color(color,delay)
str = [pwd '\images\'];
% name = dir(fullfile(str,'*.jpg'));
% name = {name.name};
% color = inputdlg('Name of the color');
% color = color{:};
modelname = [str color '.jpg'];
if nargin<2
splash(modelname);
else
splash(modelname,delay);
end
% modelname = imread([str color '.jpg']);
% h = figure; iptsetpref('ImshowBorder','tight');drawnow;
% movegui(h,'northeast');
% set(h,'CloseRequestFcn',[],'MenuBar','none');
% imshow(modelname,'InitialMagnification','fit');
% pause(3);
% delete(h);
|
|
Contact us at files@mathworks.com