GUI.m
From SoftwarePractice.org
% GUI clear all; close all; output = 'empty';
% CREATES MAIN WINDOW
barwindow = figure('Name', 'Barcode recognition');
% CREATES AXIS FOR IMAGE input_image_axis = axes('position', [.05, .3, .9, .55]);
% CREATES POP-UP MENU
% examples_list is the string of examples which are defined by their index
examples_list = 'Perfect Image|example18_reversed|example18_mblurred|example18_blurred|example18_90|example100|example18_noise|example18_gaus005|example18_gaus05|Blured Image|example11|example12|example13|example14|example15|example16|example18_blurgaus05|example18';
load_popup = uicontrol ('Style', 'popupmenu', 'string', examples_list, 'position', [30,55,100,25], 'callback', 'index_file');
% CREATES TEXT FIELDS input_title = uicontrol('Style', 'text', 'string', 'INPUT', 'Units', 'pixels', 'position', [180, 370, 200, 40], 'BackgroundColor', 'r', 'FontSize', 18);
% CREATES EXIT PUSHBUTTON
exit_button = uicontrol ('Style', 'pushbutton', 'string', 'Exit', 'position', [450, 55, 80, 25], 'callback', 'close');
% CREATES PROCESS PUSHBUTTON
process_button = uicontrol ('Style', 'pushbutton', 'string', 'Process', 'position', [330, 55, 80, 25], 'callback', 'main');
% CREATES DEBLUR OPTION CHECKBOX
deblur_check = uicontrol ('Style', 'checkbox', 'string', 'Perform Debluring', 'position', [170, 55, 120, 25], 'callback', 'deblur');
Back to: Matlab Graphical User Interface
