%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% (c) Rafeef Abu-Gharbieh, Karin Althoff, Ghassan Hamarneh 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function fig = CVproj()
% This is the machine-generated representation of a Handle Graphics object
% and its children.  Note that handle values may change when these objects
% are re-created. This may cause problems with any callbacks written to
% depend on the value of the handle at the time the object was saved.
% This problem is solved by saving the output as a FIG-file.
%
% To reopen this object, just type the name of the M-file at the MATLAB
% prompt. The M-file and its associated MAT-file must be on your path.
% 
% NOTE: certain newer features in MATLAB may not have been saved in this
% M-file due to limitations of this format, which has been superseded by
% FIG-files.  Figures which have been annotated using the plot editor tools
% are incompatible with the M-file/MAT-file format, and should be saved as
% FIG-files.

load CVproj

h0 = figure('Color',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Colormap',mat0, ...
	'CreateFcn',mat1, ...
	'FileName','CVproj.m', ...
	'PaperPosition',[18 180 576 432], ...
	'PaperUnits','points', ...
	'Position',[495 133 542 787], ...
	'Tag','Fig1', ...
	'ToolBar','none');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Callback',mat2, ...
	'ListboxTop',0, ...
	'Position',[41.25 507.75 111.75 30.75], ...
	'String','Choose image', ...
	'Tag','PushbuttonImage');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Callback','CBedge;', ...
	'ListboxTop',0, ...
	'Position',[41.25 357.75 112.5 33], ...
	'String','Detect edge', ...
	'Tag','PushbuttonEdge');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Callback',mat3, ...
	'ListboxTop',0, ...
	'Max',4, ...
	'Position',[41.25 482.25 114 19.5], ...
	'String',['Sobel                ';'Prewitt              ';'Roberts              ';'Laplacian of Gaussian';'Zero cross           ';'Canny                ';'Sub-pixel            '], ...
	'Style','popupmenu', ...
	'Tag','PopupMenuEdge', ...
	'UserData','[]', ...
	'Value',7);
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[41.25 439.5 53.25 15.75], ...
	'String','.1', ...
	'Style','edit', ...
	'Tag','EditTextThresh');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[42.75 456 96.75 15], ...
	'String','Threshold', ...
	'Style','text', ...
	'Tag','StaticTextThresh');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[42.75 413.25 96.75 15], ...
	'String','Kernel width', ...
	'Style','text', ...
	'Tag','StaticTextKernel');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[41.25 396.75 53.25 15.75], ...
	'String','1.2', ...
	'Style','edit', ...
	'Tag','EditTextKernel');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Callback',mat4, ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[41.25 231 113.25 33.75], ...
	'String','Hough', ...
	'Tag','PushbuttonHough');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[41.25 314.25 111.75 16.5], ...
	'String','467', ...
	'Style','edit', ...
	'Tag','EditTextNDist');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[41.25 270.75 111.75 16.5], ...
	'String','200', ...
	'Style','edit', ...
	'Tag','EditTextNAng');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[42.75 331.5 96.75 15], ...
	'String','Number of Distances', ...
	'Style','text', ...
	'Tag','StaticTextNDist');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[42.75 288 96.75 15], ...
	'String','Number of Angles', ...
	'Style','text', ...
	'Tag','StaticTextNAng');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Callback','CBunhough;', ...
	'Enable','off', ...
	'ListboxTop',0, ...
	'Position',[41.25 147.75 113.25 33.75], ...
	'String','Unhough', ...
	'Tag','PushbuttonUnhough');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[42.75 204.75 96.75 15], ...
	'String','Vote threshold fraction', ...
	'Style','text', ...
	'Tag','StaticTextUnhough');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 1], ...
	'ListboxTop',0, ...
	'Position',[41.25 187.5 111.75 16.5], ...
	'String','.2', ...
	'Style','edit', ...
	'Tag','EditTextUnhough');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Callback',mat5, ...
	'ListboxTop',0, ...
	'Position',[41.25 108 113.25 33.75], ...
	'String','Exit', ...
	'Tag','PushbuttonExit');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Callback','CBabout;', ...
	'ListboxTop',0, ...
	'Position',[41.25 68.25 113.25 33.75], ...
	'String','About', ...
	'Tag','PushbuttonAbout');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'FontSize',10, ...
	'FontWeight','bold', ...
	'ListboxTop',0, ...
	'Position',[78 566.25 225 14.25], ...
	'String','Line Detection Using Hough Transform', ...
	'Style','text', ...
	'Tag','Title');
if nargout > 0, fig = h0; end
