亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? polgui_ver1_r14.m

?? 如何使用GUI那就下這個吧
?? M
?? 第 1 頁 / 共 3 頁
字號:
function varargout = polgui_ver1_r14(varargin)% -------------------------------------------------------------------------% Copyright (C) 2005-2008, Nitin B. Bangera  (nitinb2@gmail.com)%% POLGUI is free software: you can redistribute it and/or modify% it under the terms of the GNU General Public License as published by% the Free Software Foundation, either version 3 of the License, or% (at your option) any later version.% % This program is distributed in the hope that it will be useful,% but WITHOUT ANY WARRANTY; without even the implied warranty of% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the% GNU General Public License for more details.% % You should have received a copy of the GNU General Public License% along with this program.  If not, see <http://www.gnu.org/licenses/>.% -------------------------------------------------------------------------%                   -- POLGUI Ver 1.0 for Matlab R14 -- % -------------------------------------------------------------------------% Matlab Interface for Polhemus Digitizer( Only with one stylus pen )% Author Nitin B Bangera % % NOTE : Set Screen Resolution to "1280 by 1024" or higher for GUI to be% displayed correctly% %  Usage :%    % %      ------ polgui_ver1_r14, by itself, creates a new POLGUI_VER1_R14 with%      default settings of 1 receivers (stylus pen)% %      ------ modify line 235 to change EEG Montage %      ------ modify line 271 and 273 to set Baud rate euivalent to that on%      Polhemus (default set to 57600)%      Baud Rate Settings on switch on back of Polhemus ( 1= UP, 0=Down)%       Baud rate    SW 1  SW 2   SW 3%         1200        0      0      0%         2400        1      0      0%         4800        0      1      0%         9600        1      1      0%         19200       0      0      1%         38400       1      0      1%         57600       0      1      1%         115200      1      1      1% Important Variables Saved: in file collected_data.mat% -------------------------------------------------------------------------% data_orig --> Original Data including the 3 consecutive points collected % for each location for averaging and pen movement error detection% data -> Averaged data% data_transf -> Data transformed to head co-ordinate frame% location -> Names of locations digitized% count -> Total number of digitized points% M -> Rotation matrix for transformation% T -> Translation matrix% -------------------------------------------------------------------------% Description of global variables and counters in the code % % needed_loc LOC DATA DATA_ORIG DATA_TRANSF COUNTER COUNTER1 special_case strmatch_index redigitize additional T M   % % needed_loc  -> chararcter array with the CARDINAL POINT locations% and EEG montage locations% LOC-> Set of digitized  locations% DATA_ORIG -> Original Data before averaging% DATA -> Data after averaging 3 successive digitizations for each point% DATA_TRANSF -> Data after co-ordinate transformation% COUNTER -> Main Counter% COUNTER1-> Counter which includes count for 3 successive digitization for each point% Tag for 4 cases for remove button : % special_case% Case 0-> Initial Condition  , Case 1-> counter <=4% Case 2-> Counter between 4 and length of needed montage % Case 3-> Additional Points% % strmatch_index ->  matches current Vaue in the listbox with needed_loc matrix and returns index % redigitize -> Tag to check if redigitization is needed Values: 0 or 1% additional -> Tag to check if digitization of additional points is needed Values: 0 or 1% T -> Translation Matrix% M -> Rotation Matrtix% --------------------------------------------------------------------------% Steps for head digitization using POLGUI% 1.Before starting GUI, edit EEG_MONTAGE variable (on line 215 in this m-file) to set required% montage to be acquired. % % 2. Start GUI by typing name of this m-file in MATLAB command line (GUI% mode) e.g. polgui_ver4_r14 % % % Follow these steps in GUI by clicking on respective buttons in sequential% order% a. Initialise Device: % Serial Object created with specific Baud rate. Change this call back to% change serial port properties% % To digitize position the tip of the Isotrack Stylus at the desired point% and click on the dialog box within the GUI. The co-ordinates% displayed are the averages of three sequential readings taken from the% digitizer. If they differ from each other by more than 2 mm, you are asked% to digitize the point again.% % b. Get Test Point:% Secure one test point% % c. Get Cardinal Points in order LA(left Auricular), RA(Right Auricular)% and Nasion.% % d. Align Frame from device coordinates to head co-ordinate axes determined % by the cardinal points% Head Coordinate system:% The head coordinate system is defined as folloew: The x axis passes through the % preauricular points with positive values on the right, the y-axis will be% perpendicular to x axis, passing through the nasion and the positive axis % pointing towards the nose, and the z axis will be pointed up, perpendicular to xy plane.% The auricular points are known as anatomical landmarks or cardinal points.% % Principle: % When Align Frame is press, the coordinates of the cardinal locations will % change to head frame. Notice the z coordinates of all three points are% zero. The y coordinates of the auricular points are zero with a positive x% coordinate on the right and a negative on the left auricular point,% respectively. The nasion has  a zero x coordinate and its y coordinate is% positive. The auricular points will be almost symmetrically located: their % x coordinates are opposite and about of equal magnitude % % -Procedure for alignment-------------------------------------------------% a1. Calculate the new origin coordinates o% Define three vectors a(nasion-la), b1(ra-la) and b2(la-ra)% Drop projection of a on b1 and b2 to calculatet1 and t2 respectively.% find ratio in which projection from b1 (point o) divides vector b1% o=la+t*b1   o=(Ox,Oy,Oz)% % b1. Define the three new coordinate axes ox(normalised ra-o),oy(normalised% nasion-o),oz(cross(ox,oy))% % c1. First translate orgin by -o% Define Translation matrix T as follows:%     | 1   0   0    0|%     | 0   1   0    0|% T = | 0   0   1    0|%     |-Ox -Oy -Oz   0|% % d1. Then Rotate .Define Rotation Matrix M as folows:% R=[ox;oy;oz]% R1=inverse(R) or transpose(R)%    |"  "  "|%    |"  R1 "|% M= |"  "  "|%    |0  0  0|% % e1. Transform points to new co-ordinate axes with center at o and three% axes ox,oy and oz% [xnew ynew znew ]=[xold yold zold 1]*T*M;% -------------------------------------------------------------------------% e. Get EEG montage points.% % f. Get additional points% Fot additional points , click the stylus pen for digitization.% % g. Press stop to close the serial device and delete objects from memory.% -------------------------------------------------------------------------%  % Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name',       mfilename, ...                   'gui_Singleton',  gui_Singleton, ...                   'gui_OpeningFcn', @polgui_ver1_r14_OpeningFcn, ...                   'gui_OutputFcn',  @polgui_ver1_r14_OutputFcn, ...                   'gui_LayoutFcn',  [] , ...                   'gui_Callback',   []);if nargin && ischar(varargin{1})    gui_State.gui_Callback = str2func(varargin{1});endif 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 polgui_ver1_r14 is made visible.function polgui_ver1_r14_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   command line arguments to polgui_ver1_r14 (see VARARGIN)set(hObject, 'Units', 'pixels');handles.banner = imread('head.png'); % Read the image file banner.jpginfo = imfinfo('head.png'); % Determine the size of the image fileaxes(handles.logo);image(handles.banner)set(handles.logo, ...    'Visible', 'off', ...    'Units', 'pixels');% Choose default command line output for polgui_ver1_r14handles.output = hObject;% Update handles structureguidata(hObject, handles);% UIWAIT makes polgui_ver1_r14 wait for user response (see UIRESUME)% uiwait(handles.figure1);%--------------------------------------------------------------------------% --- Outputs from this function are returned to the command line.function varargout = polgui_ver1_r14_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 structurevarargout{1} = handles.output;%--------------------------------------------------------------------------% --- Executes on button press in initialise.%Sets Baudrate and created serial object% To change port name and baudrate change int this callbackfunction initialise_Callback(hObject, eventdata, handles)% hObject    handle to initialise (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)% EEG Montage to be aquired . Pts 2,3 and 4 are cardinal points_pen% Edit EEG_MONTAGE to change EEG MontageEEG_MONTAGE=strvcat('Fp1','Fp2','F3','F4','C3','C4','P3',...    'P4','O1','02','F7','F8','T3','T4','T5','T6','FZ','CZ','PZ','OZ','A1','A2','Ref','PO1',...    'PO2','CP1','CP2','FTC1','FTC2','TCP1','TCP2','X31','X32','X33');handles.needed_loc=strvcat('test','LA','RA','NASION',EEG_MONTAGE);global special_case strmatch_index no_add additional redigitize T M k;handles.location=[];  % Handles structure for location nameshandles.data=[];      % Handles Structure for final DATA handles.count=1;      % Handles structure for overall count of points digitizedspecial_case=0;% Tag for 4 cases for remove button : % Case 0-> Initial Condition  , Case 1-> counter <=4% Case 2-> Counter between 4 and length of needed montage % Case 3-> Additional Pointsstrmatch_index=0;no_add=0;       additional=0;   % Tag to get additonal points, Values:0 or 1redigitize=0;   % Tag to keep track  of redigitization ,Values 0 or 1k=5;str1=sprintf('\n\n\nInitialising device \n');set(handles.points,'String',[]);set(handles.text1,'String',str1);set(handles.remove,'Enable','on');set(handles.get_test,'Enable','on');set(handles.align,'Enable','off');set(handles.get_la,'Enable','off');set(handles.get_ra,'Enable','off');set(handles.get_nasion,'Enable','off');set(handles.get_montage,'Enable','off');set(handles.get_additional,'Enable','off');set(handles.stop,'Enable','on');% Create serial object and set baud rate tmp_pc=ispc;if (tmp_pc)    handles.s=serial('COM1','BaudRate',57600);else    handles.s=serial('/dev/ttyS0','BaudRate',57600);end%handles.s=serial('COM1','BaudRate',57600);guidata(hObject,handles);str_text1=sprintf('\nDEVICE READY \n\n\nRemove : deletes last digitized point');str_text2=sprintf('\n\nGet Test Point');set(handles.text2,'String',str_text2);set(handles.text1,'String',str_text1);set(handles.initialise,'Enable','off');set(handles.text_nasion,'String','No Points Digitized');set(handles.text_la,'String','No Points Digitized');set(handles.text_ra,'String','No Points Digitized');%--------------------------------------------------------------------------% --- Executes on button press in stop.% Save data in mat file collected_datafunction stop_Callback(hObject, eventdata, handles)% hObject    handle to stop (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)set(handles.initialise,'Enable','on');global DATA DATA_ORIG DATA_TRANSF COUNTER1 COUNTER LOC  count T M redigitize;data_orig=DATA_ORIG;data=DATA;data_transf=DATA_TRANSF;count=COUNTER-1;location=LOC;COUNTER1=[];COUNTER=[];DATA_ORIG=[];DATA=[];DATA_TRANSF=[];LOC=[];save collected_data data_orig data data_transf count location T M;hold(handles.coordinates,'off');fclose(handles.s);delete(handles.s);clear handles.s;clear handles.data;clear handles.location;clear handles.T; clear handles.M;guidata(hObject,handles);str3=sprintf('\n\n\nPOLGUI Ver 1.0');str4=sprintf('\n\n\nPoints Digitized\n\nPress "Initialise" to Start');set(handles.text1,'String',str3);set(handles.text2,'String',str4);set(handles.remove,'Enable','off');set(handles.stop,'Enable','off');set(handles.remove,'Enable','on');set(handles.get_test,'Enable','on');set(handles.align,'Enable','on');set(handles.get_la,'Enable','on');set(handles.get_ra,'Enable','on');set(handles.get_nasion,'Enable','on');set(handles.get_montage,'Enable','on');set(handles.get_additional,'Enable','on');clear data data_orig data_transf count location T M;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产亚洲制服色| 亚洲日本中文字幕区| 色国产精品一区在线观看| 久久精品国产999大香线蕉| 1024国产精品| 国产日韩精品久久久| 91精品久久久久久久久99蜜臂| 99久久国产综合精品麻豆| 精品夜夜嗨av一区二区三区| 亚洲午夜久久久久久久久电影院| 国产欧美日韩卡一| 久久亚洲精精品中文字幕早川悠里| 欧洲日韩一区二区三区| 成人午夜精品在线| 韩日av一区二区| 日韩高清中文字幕一区| 亚洲综合免费观看高清完整版| 久久精品人人做人人爽97| 日韩欧美激情一区| 欧美日韩1区2区| 在线观看不卡视频| 91一区二区在线| 成人激情av网| 国产91精品免费| 国产又黄又大久久| 精品无人区卡一卡二卡三乱码免费卡 | 风间由美一区二区三区在线观看| 日本视频在线一区| 亚洲国产婷婷综合在线精品| 1区2区3区欧美| 亚洲视频一区在线观看| 国产精品久久久久久久久果冻传媒| 久久新电视剧免费观看| 日韩精品自拍偷拍| 精品精品国产高清a毛片牛牛 | 国产午夜一区二区三区| 久久免费视频一区| 国产亚洲自拍一区| 欧美韩国日本不卡| 国产精品色噜噜| 国产精品麻豆视频| 最新欧美精品一区二区三区| 国产精品国产三级国产a| 国产精品久久久久久久久搜平片| 欧美国产精品一区| 最近日韩中文字幕| 亚洲综合色区另类av| 一区二区激情小说| 天天综合日日夜夜精品| 日韩电影在线一区二区三区| 亚洲图片欧美一区| 日韩av一级电影| 精品一区在线看| 国产91综合网| 色中色一区二区| 欧美日韩色一区| 精品国产一二三区| 国产精品久久久久精k8| 亚洲欧美另类久久久精品| 亚洲综合男人的天堂| 日韩av中文在线观看| 国产乱码字幕精品高清av| 成人短视频下载| 欧美日韩国产首页| 久久久噜噜噜久久人人看| 中文字幕色av一区二区三区| 亚洲高清久久久| 久久99精品久久久久久久久久久久| 国产在线国偷精品免费看| 91偷拍与自偷拍精品| 日韩一区二区三区精品视频| 久久久综合激的五月天| 亚洲乱码精品一二三四区日韩在线| 午夜精品福利久久久| 国产风韵犹存在线视精品| 色视频成人在线观看免| 日韩欧美123| 亚洲精品视频在线| 国产一区福利在线| 色综合色综合色综合| 欧美大片一区二区三区| 亚洲视频免费在线| 久久aⅴ国产欧美74aaa| 色猫猫国产区一区二在线视频| 91精品国产一区二区三区蜜臀| 中文一区一区三区高中清不卡| 亚洲成va人在线观看| 国产精品综合久久| 欧美日本一区二区在线观看| 久久久久久久电影| 三级精品在线观看| 色综合色狠狠天天综合色| 精品国产成人在线影院| 亚洲一区二区三区四区五区中文 | 久久精品国产一区二区三| 色偷偷久久人人79超碰人人澡| 精品日韩一区二区三区免费视频| 亚洲欧美日韩久久精品| 国产精品夜夜爽| 欧美精品一级二级| 亚洲精品免费在线播放| 国产99精品国产| 日韩免费一区二区三区在线播放| 一区二区在线观看免费| 成人免费看的视频| 欧美精品一区二区三区蜜臀| 亚洲一区二区四区蜜桃| 91一区二区三区在线播放| 亚洲国产精品成人综合色在线婷婷| 麻豆精品一区二区三区| 欧美日韩国产精品自在自线| 亚洲男人的天堂在线观看| 丁香亚洲综合激情啪啪综合| 日韩欧美在线123| 亚洲大片免费看| 在线观看视频欧美| 亚洲欧美一区二区三区孕妇| 国产成人亚洲综合a∨婷婷图片| 欧美成人高清电影在线| 日韩高清一级片| 欧美剧情片在线观看| 亚洲国产精品一区二区久久| 色综合久久88色综合天天| 国产精品美女久久久久久久久| 国产乱子伦视频一区二区三区| 欧美mv日韩mv亚洲| 麻豆国产91在线播放| 日韩欧美国产麻豆| 久久99热99| 精品久久久久香蕉网| 国产在线视频精品一区| 久久久亚洲精品一区二区三区 | 成人毛片视频在线观看| 久久综合九色综合欧美亚洲| 韩国精品一区二区| 久久夜色精品一区| 国产精品538一区二区在线| 久久欧美中文字幕| 不卡大黄网站免费看| 最新热久久免费视频| 日本韩国一区二区| 亚洲电影一级片| 欧美一卡二卡在线观看| 久久99久久99小草精品免视看| 精品国产精品网麻豆系列| 国产精品亚洲午夜一区二区三区| 国产日产欧美一区二区三区| 成人在线视频一区| 亚洲精品视频自拍| 4438亚洲最大| 久久国产日韩欧美精品| 久久久无码精品亚洲日韩按摩| 国产传媒日韩欧美成人| 亚洲视频小说图片| 欧美男同性恋视频网站| 久久国产精品一区二区| 国产午夜亚洲精品不卡| 成人av高清在线| 亚洲午夜免费视频| 精品国产乱码久久久久久图片 | 4438x亚洲最大成人网| 毛片一区二区三区| 亚洲国产精品成人综合| 欧美视频一区二区三区在线观看 | 国产亚洲欧美色| 99久久99精品久久久久久| 亚洲一区二区三区在线| 欧美成人女星排名| 成人国产免费视频| 亚洲午夜国产一区99re久久| 欧美成人aa大片| 91偷拍与自偷拍精品| 美女在线观看视频一区二区| 欧美国产视频在线| 欧美伦理电影网| 成人妖精视频yjsp地址| 亚洲国产中文字幕在线视频综合| 精品伦理精品一区| 色婷婷久久久亚洲一区二区三区 | 中文在线免费一区三区高中清不卡| 91在线观看地址| 久久精品国产99国产| 亚洲黄色免费电影| 国产视频一区二区在线观看| 欧美日本一道本在线视频| 成人一二三区视频| 久久精品国产**网站演员| 亚洲免费伊人电影| 精品国精品自拍自在线| 91在线精品一区二区| 韩日av一区二区| 日韩电影在线观看电影| 亚洲天堂成人在线观看| 2014亚洲片线观看视频免费| 欧美男人的天堂一二区| www.视频一区| 国产在线国偷精品免费看| 日韩激情视频在线观看| 玉米视频成人免费看| 国产精品欧美久久久久一区二区|