⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 checktrainingset.m

📁 eye detection sample in matlab. Eyetrackers can analyze a driver’s level of attentiveness while driv
💻 M
字号:
% abrponm donefunction varargout = test1(varargin)% MOUTHTRAIN Application M-file for mouthtrain.fig%    FIG = MOUTHTRAIN launch mouthtrain GUI.%    MOUTHTRAIN('callback_name', ...) invoke the named callback.% Last Modified by GUIDE v2.0 04-Dec-2003 00:28:37global pos;if nargin == 0  % LAUNCH GUI	fig = openfig(mfilename,'reuse');	% Generate a structure of handles to pass to callbacks, and store it. 	handles = guihandles(fig);	guidata(fig, handles);	if nargout > 0		varargout{1} = fig;	endelseif ischar(varargin{1}) % INVOKE NAMED SUBFUNCTION OR CALLBACK	try		if (nargout)			[varargout{1:nargout}] = feval(varargin{:}); % FEVAL switchyard		else			feval(varargin{:}); % FEVAL switchyard		end	catch		disp(lasterr);	endend% --------------------------------------------------------------------function varargout = start_Callback(h, eventdata, handles, varargin)global picNumber;global lab;global sam;global newSamplesload trainingsetnewSamples=[];% in order for the program to show the samples of a different person, change the two lines below% so labels= new person's labellab=labels(:,find(labels==1));sam=samples(:,find(labels==1));picNumber=0;function pushbutton64_Callback(hObject, eventdata, handles)global lab;global sam;global picNumber;     picNumber=picNumber+1;     nose         = reshape(sam(1:234,picNumber),18,13);        axes(handles.xnose);    imshow(nose);     mouth       = reshape(sam(235:585,picNumber),13,27);       axes(handles.xmouth);    imshow(mouth);    lefteye   = reshape(sam(586:810,picNumber),15,15);       axes(handles.xlefteye);    imshow(lefteye);    righteye = reshape(sam(811:1035,picNumber),15,15);       axes(handles.xrighteye);    imshow(righteye);    nb               = reshape(sam(1036:1259,picNumber),14,16);       axes(handles.xnb);    imshow(nb);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -