function start_model


% This will clear the current picture and allow the user to enter a new 
% prescription.  This will happen when the user presses the load button.

%reset(cla)  % resets all the current axes
cla reset
%reset(findobj('Tag','Axes1'))  % resets all the current axes
clear all   % clears all variables

%
% These are the global variables
%
% UniLevel - Tumor Uniformity Level
%
% prescription - A N x N x 2 matrix containing the prescription
%
% handle
%
% value
%
% fileIndex
%

global UniLevel prescription PatientImage

% This intializes the array for the prescription with zeros.
% The first entry is the number of columns in the grid.
% The second entry is the number of rows in the grid.
% The third entry indexes for a tumor or a critical structure where
% 

prescription = zeros(64, 64, 2);

% fileIndex is initially set to one;  this means that the prescription 
% is initially set for a tumor

fileIndex = 1;

% PatientImage is initially the zeros matrix, prescription

PatientImage = image(prescription(:, :, 1));

% this 


set(PatientImage,'CDataMapping','direct');
set(PatientImage,'EraseMode','none');

% this allows the user to start drawing on the grid

set(gcf,'WindowButtonDownFcn','handlemouse start');

