function varargout = Start(varargin)
%START M-file for Start.fig
%      START, by itself, creates a new START or raises the existing
%      singleton*.
%
%      H = START returns the handle to a new START or the handle to
%      the existing singleton*.
%
%      START('Property','Value',...) creates a new START using the
%      given property value pairs. Unrecognized properties are passed via
%      varargin to Start_OpeningFcn.  This calling syntax produces a
%      warning when there is an existing singleton*.
%
%      START('CALLBACK') and START('CALLBACK',hObject,...) call the
%      local function named CALLBACK in START.M with the given input
%      arguments.
%
%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
%      instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES

% Edit the above text to modify the response to help Start

% Last Modified by GUIDE v2.5 19-May-2009 21:56:28

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @Start_OpeningFcn, ...
                   'gui_OutputFcn',  @Start_OutputFcn, ...
                   'gui_LayoutFcn',  [], ...
                   'gui_Callback',   []);
if nargin && ischar(varargin{1})
   gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
    gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT

% --- Executes just before Start is made visible.
function Start_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin   unrecognized PropertyName/PropertyValue pairs from the
%            command line (see VARARGIN)

% Choose default command line output for Start
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes Start wait for user response (see UIRESUME)
% uiwait(handles.figure1);

clear all;

cesta = strcat(pwd, '\obrazky\', 'uvod.jpg');
G = imread(cesta);
ha = gcf;
figure(ha)
set(findobj('Tag','axes6'), 'UserData', imshow(G));


% --- Outputs from this function are returned to the command line.
function varargout = Start_OutputFcn(hObject, eventdata, handles)
% varargout  cell array for returning output args (see VARARGOUT);
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure
varargout{1} = handles.output;


function radiobutton_r_Callback(hObject, eventdata, handles)



function radiobutton_rr_Callback(hObject, eventdata, handles)
% hObject    handle to radiobutton_rr (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of radiobutton_rr


% --- Executes on button press in radiobutton_ss.
function radiobutton_ss_Callback(hObject, eventdata, handles)
% hObject    handle to radiobutton_ss (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of radiobutton_ss


% --- Executes on button press in radiobutton_s.
function radiobutton_s_Callback(hObject, eventdata, handles)
% hObject    handle to radiobutton_s (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hint: get(hObject,'Value') returns toggle state of radiobutton_s


function pushbutton_zacit_Callback(hObject, eventdata, handles)
if(get(findobj('Tag','radiobutton_r'),'Value')==get(findobj('Tag','radiobutton_r'),'Max'))
    adr = ('\obrazky\r\');
    p = 1;
else
end

if(get(findobj('Tag','radiobutton_rr'),'Value')==get(findobj('Tag','radiobutton_rr'),'Max'))
    adr = ('\obrazky\rr\');
    p = 2;
else
end

if(get(findobj('Tag','radiobutton_s'),'Value')==get(findobj('Tag','radiobutton_s'),'Max'))
    adr = ('\obrazky\s\');
    p = 3;
else
end

if(get(findobj('Tag','radiobutton_ss'),'Value')==get(findobj('Tag','radiobutton_ss'),'Max'))
    adr = ('\obrazky\ss\');
    p = 4;
else
end

zkouseni(adr,p);


function pushbutton_konec_Callback(hObject, eventdata, handles)
delete(get(0,'Children'));
clear all;
close all;


function pushbutton_navod_Callback(hObject, eventdata, handles)
navod;


function pushbutton_oprogramu_Callback(hObject, eventdata, handles)
oprogramu;





