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

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

?? lindemo.m

?? Edge detection with svm (doc and matlabcode)
?? M
?? 第 1 頁 / 共 2 頁
字號:
function result = lindemo(action,hfigure,varargin)% LINDEMO demo on the linear learning algorithms.%% LINDEMO demonstrates use of the algorithms which find %  linear decision hyperplane between two (dichotomy)%  point sets. Input data must be 2-dimensional and%  can be interactively created by the user.%%  The program vizualizes found hyperplane in the current %  algorithm step. Badly clasiffied point, which will be used %  by the algorithm for updating of the solution, is also%  vizualized. Text description of the state of the tested %  algorithm is printed in the comment window.%%  Following algorithms can be tested:%%  Perceptron  - Perceptron learning rule.%  Kozinec     - Kozinec's algorithm.%  e-Kozinec   - Modified Kozinec's algorithm finding e-optimal solution.%  LinearSVM   - linear version of the Supprot Vector Machines.%% Control:%  Algorithm  - select algorithm for testing.%  Epsilon    - input parameter for the EKOZINEC algorithm %               (see help ekozinec).%  Iterations - number of iterations in one step.%  Animation  - enable/dissable animation.%%  FIG2EPS     - export screen to the PostScript file.%  Load data   - load input point sets from file.%  Create data - invoke program for creating point sets.%  Reset       - set the tested algorithm to the initial state.%  Play        - run the tested algorithm.%  Stop        - stop the running algorithm.%  Step        - perform only one step.%  Info        - invoke the info box.%  Close       - close the program.%%% See also PERCEPTR, KOZINEC, EKOZINEC, LINSVM.%% Statistical Pattern Recognition Toolbox, Vojtech Franc, Vaclav Hlavac% (c) Czech Technical University Prague, http://cmp.felk.cvut.cz% Written Vojtech Franc (diploma thesis) 26.02.2000, 15.5.2000% Modifications% 24. 6.00 V. Hlavac, comments polished.% 11-dec-2000 V. Franc, a little increasing of code readibility% 15-dec-2000LINE_WIDTH=1;        % width of separation lineANIM_STEPS=10;       % number of steps during the line animationBORDER=0.2;          % minimal space between axis and pointsDATA_IDENT='Finite sets, Enumeration';  % file identifierALGOS=['Perceptron';'Kozinec   ';'e-Kozinec ';  'LinearSVM '];%       ;'p-sum     ';'p-sumv    ';'Navara    ';'Nav-homog ';...%       'linprog   ']; % list of algos% if number of arguments is less then 1, that means first call of this% function. Every other calls set up at least argument actionif nargin < 1,   action = 'initialize';end% what action is required ?switch lower(action)case 'initialize'   % == Initialize user interface control and figure =======   % == Figure =============================================   left=0.1;   width=0.8;   bottom=0.1;   height=0.8;
   hfigure=figure('Name','Linear discriminant function', ...      'Visible','off',...
    'NumberTitle','off', ...
      'Units','normalized', ...
      'Position',[left bottom width height],...
      'Units','normalized', ...
      'tag','Lindemo',...
      'RendererMode','manual');

   % == Axes =========================================   left=0.1;
   width=0.65;
   bottom=0.35;
   height=0.60;
   haxes1=axes(...
       'Units','normalized', ...
      'Box','on', ...
      'DrawMode','fast',...
      'UserData',[],...
      'Position',[left bottom width height]);
   xlabel('feature x');
   ylabel('feature y');

   % == Comment window =================================   % Comment Window frame
   bottom=0.05;
   height=0.2;
   uicontrol( ...
        'Style','frame', ...
        'Units','normalized', ...
        'Position',[left bottom width height], ...
        'BackgroundColor',[0.5 0.5 0.5]);

   % Text label
   uicontrol( ...
        'Style','text', ...
        'Units','normalized', ...
        'Position',[left height-0.01 width 0.05], ...
        'BackgroundColor',[0.5 0.5 0.5], ...
        'ForegroundColor',[1 1 1], ...
        'String','Comment Window');

   % Edit window
   border=0.01;
   hconsole=uicontrol( ...
        'Style','edit', ...
        'HorizontalAlignment','left', ...
        'Units','normalized', ...
        'Max',10, ...
        'BackgroundColor',[1 1 1], ...
        'Position',[left+border bottom width-2*border height-0.05], ...
        'Enable','inactive',...
        'String','');


    % == Buttons ===========================================    % -- Export to EPS ---------
   width=0.1;
   left=0.75-width;
   bottom=0.95;
   height=0.04;
   hbtclose = uicontrol(...
    'Units','Normalized', ...
      'Callback','fig2eps(gcf)',...
        'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'String','FIG2EPS');
   %----------------------------------

   % Close button
   left=0.8;
   bottom=0.05;
   height=0.05;
   width=0.15;
   hbtclose = uicontrol(...
    'Units','Normalized', ...
      'Callback','close(gcf)',...
        'ListboxTop',0, ...
        'Position',[left bottom width height], ...
        'String','Close');

   % Info button: call stanard info box
   bottom=bottom+1.5*height;
   hbtinfo = uicontrol(...
    'Units','Normalized', ...
      'Callback','lindemo(''info'',gcf)',...
        'ListboxTop',0, ...
        'Position',[left bottom width height], ...
        'String','Info');

   % Step button: perform one adaptation step
   bottom=bottom+1.5*height;
    hbtstep = uicontrol(...
      'Units','Normalized', ...
      'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'String','Step', ...
      'Callback','lindemo(''step'',gcf)');

   % Stop button: stop process of adaptation
   bottom=bottom+height;
   hbtstop = uicontrol(...
    'Units','Normalized', ...
        'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'String','Stop', ...
      'Callback','set(gcbo,''UserData'',1)',...
      'Enable','off');

   % Play button: start up adaptation
   bottom=bottom+height;
   hbtplay = uicontrol(...
    'Units','Normalized', ...
      'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'String','Play', ...
      'Callback','lindemo(''play'',gcf)');

   % Reset button: set up t = 0
   bottom=bottom+height;
    hbtreset = uicontrol(...
      'Units','Normalized', ...
      'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'String','Reset', ...
      'Callback','lindemo(''reset'',gcf)');

   % Creat data
   bottom=bottom+1.5*height;
    hbtcreat = uicontrol(...
      'Units','Normalized', ...
      'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'String','Create data', ...
      'Callback','lindemo(''creatdata'',gcf)');

   % Load data
   bottom=bottom+1*height;
    hbtload = uicontrol(...
      'Units','Normalized', ...
      'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'String','Load data', ...
      'Callback','lindemo(''getfile'',gcf)');

   % == Popup menus ======================================   % Pop up menu for the selection between algorithms
    % title
   bottom=0.95-height;
   htxalgo=uicontrol( ...
      'Style','text', ...
      'Units','normalized', ...
      'Position',[left bottom width height], ...
      'String','Algorithm');
   % popup menu
   bottom=bottom-height;
   hpualgo=uicontrol( ...
      'Style','popup', ...
      'Units','normalized', ...
      'CallBack','lindemo(''epshandler'',gcf)',...
      'Position',[left bottom width height], ...
      'String',ALGOS);

   % == Edit line ========================================   % epsilon
   bottom=bottom-1.2*height;
   htxeps=uicontrol( ...
      'Style','text', ...
      'Units','normalized', ...
      'Position',[left bottom width 0.9*height], ...
      'Enable','off',...
      'String','epsilon');
   bottom=bottom-height;
   hedeps = uicontrol(...
    'Units','normalized', ...
      'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'Style','edit',...
      'Enable','off',...
      'CallBack','lindemo(''epshandler'',gcf)',...
      'String','1e-3');

   % # of iterations
   bottom=bottom-1.1*height;
   htxiter=uicontrol( ...
      'Style','text', ...
      'Units','normalized', ...
      'Position',[left bottom width 0.9*height], ...
      'String','Iterations');

   bottom=bottom-0.9*height;
   hediter = uicontrol(...
    'Units','normalized', ...
      'ListboxTop',0, ...
        'Position',[left bottom width height], ...
      'Style','edit',...
      'CallBack','lindemo(''iterhandler'',gcf)',...
      'String','1');

   % == Check boxes ==============================================   % Make check box to determine if a line will be drawn in one    % step or smooth plot.
   bottom=bottom-height*1.2;
    hxbanim = uicontrol(...
    'Style','checkbox', ...
    'Units','normalized', ...
    'ListboxTop',0, ...
    'Position',[left bottom width height], ...
    'String','Animation');

    % ============================================================   % Store handlers
   handlers=struct(...
      'line',struct('handler',-1,'alpha',0,'theta',0,'t',0),...      'btstep',hbtstep,...      'btstop',hbtstop,...      'btclose',hbtclose,...      'btplay',hbtplay,...      'btreset',hbtreset,...      'btinfo',hbtinfo,...      'btload',hbtload,...      'btcreat',hbtcreat,...      'pualgo',hpualgo,...      'console',hconsole,...      'editer',hediter,...      'edeps',hedeps,...      'txeps',htxeps,...      'axes1',haxes1,...      'xbanim',hxbanim);   set(hfigure,'UserData',handlers)   % Reset   lindemo('reset',hfigure);   % Put figure on desktop   set(hfigure,'Visible','on');   drawnow;case 'iterhandler'
   % == Handler for edit line Iterations ===============   h=get(hfigure,'UserData');   iter=round(str2num(get(h.editer,'String')));
   if isempty(iter) | iter < 1, iter=1; end
   set(h.editer,'String',num2str(iter));


case 'epshandler'
   % == Handler for edit line Epsilon =======================   h=get(hfigure,'UserData');   % if algorithm e-Kozinec is selected then ...   if get(h.pualgo,'Value')==3,      set(h.edeps,'Enable','on');
      set(h.txeps,'Enable','on');

      epsil=str2num(get(h.edeps,'String'));
      if epsil < 0,
         epsil=1;
         set(h.edeps,'String',num2str(epsil));
      end
   else
      set(h.edeps,'Enable','off');
      set(h.txeps,'Enable','off');
   end


case 'creatdata'
   % == Invoke data set creator ================================   creatset('finite',2,'lindemo','created',hfigure);


case 'created'
   % == Load new created data set =============================
   % get handler and make this figure active
   figure(hfigure);
   h=get(hfigure,'UserData');

   % get file name
   path=varargin{1};
   name=varargin{2};
   pathname=strcat(path,name);

   if checkdat(pathname,DATA_IDENT,2,[0 0])==1,
      file.pathname=pathname;
      file.path=path;
      file.name=name;
      set(h.btload,'UserData',file);
      lindemo('loadsets',hfigure);
      lindemo('reset',hfigure);
   else
      errordlg('This file does not contain required data.','Bad file','modal');   end


case 'getfile'
   % == Invoke standard open file dialog ===================   % Opens file and checks if contains appropriate data,    % if yes loads data.
   h=get(hfigure,'UserData');   [name,path]=uigetfile('*.mat','Open file');
   if name~=0,
      file.pathname=strcat(path,name);
      file.path=path;
      file.name=name;
      if checkdat(file.pathname,DATA_IDENT,2,[0 0])==1,
         set(h.btload,'UserData',file);
         lindemo('loadsets',hfigure);
         lindemo('reset',hfigure);
      else

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色网综合在线观看| 99国产麻豆精品| 亚洲第一成人在线| 亚洲成人动漫一区| 天堂一区二区在线| 麻豆精品国产91久久久久久| 日本系列欧美系列| 麻豆国产欧美一区二区三区| 精品一区二区在线看| 国产精一品亚洲二区在线视频| 国产精品综合二区| 成人黄色电影在线| 欧美三级一区二区| 日韩免费一区二区| ●精品国产综合乱码久久久久| 综合久久久久久久| 日韩高清不卡在线| 国产69精品久久久久777| 成人97人人超碰人人99| 色婷婷av一区二区三区大白胸| 欧美日韩亚洲另类| 久久影音资源网| 亚洲激情网站免费观看| 奇米影视7777精品一区二区| 国产成人av电影在线| 欧美日韩一级视频| 国产亚洲一区字幕| 亚洲成在人线在线播放| 国产乱人伦精品一区二区在线观看| 成人黄色av网站在线| 欧美精品在欧美一区二区少妇| 精品国产亚洲在线| 一区二区视频在线| 国产一区二区不卡| 91超碰这里只有精品国产| 久久毛片高清国产| 日产国产欧美视频一区精品| 成人精品国产免费网站| 日韩一区二区在线观看视频播放| 国产精品私房写真福利视频| 日韩国产精品久久久| 色综合天天狠狠| 26uuu精品一区二区| 夜夜精品浪潮av一区二区三区| 国产精品一二三区| 日韩欧美一区中文| 亚洲午夜久久久久久久久久久| 国产成人精品免费网站| 日韩精品一区二区三区视频在线观看 | 色激情天天射综合网| 精品国产免费一区二区三区四区 | 国产欧美综合色| 日本成人在线电影网| 欧洲精品在线观看| 综合在线观看色| 本田岬高潮一区二区三区| 久久天天做天天爱综合色| 亚洲第一福利视频在线| 欧美在线观看18| 一区二区三区欧美日韩| 色综合久久99| 国产精品国产自产拍高清av王其| 韩国成人精品a∨在线观看| 日韩欧美国产三级| 蜜桃视频在线观看一区二区| 日韩一区二区不卡| 久久国产三级精品| 26uuu色噜噜精品一区| 韩国女主播成人在线观看| 91精品国产综合久久精品麻豆 | 欧美久久免费观看| 五月天激情小说综合| 欧美精品三级日韩久久| 日本成人在线看| 精品毛片乱码1区2区3区| 麻豆成人免费电影| 久久综合狠狠综合久久激情| 国产乱淫av一区二区三区| 国产精品网站在线播放| 99re6这里只有精品视频在线观看| 国产精品美女久久久久久2018| 岛国精品一区二区| 成人免费小视频| 色天使色偷偷av一区二区| 亚洲电影一级片| 日韩午夜激情电影| 成人黄色综合网站| 亚洲图片欧美视频| 日韩情涩欧美日韩视频| 国产精品夜夜嗨| 亚洲麻豆国产自偷在线| 欧美日本韩国一区二区三区视频| 日韩中文字幕91| 久久久久久一二三区| 91蜜桃视频在线| 日韩高清欧美激情| 中文字幕欧美激情| 欧美日韩国产免费一区二区 | 国产综合久久久久影院| 欧美高清一级片在线观看| 色综合欧美在线| 狠狠色丁香婷婷综合| 综合色天天鬼久久鬼色| 日韩精品一区二区三区蜜臀| 粉嫩av一区二区三区| 亚洲国产中文字幕| 久久精品欧美一区二区三区不卡| 91黄视频在线观看| 国产一区二区三区免费在线观看| 亚洲激情综合网| 久久久精品中文字幕麻豆发布| 色丁香久综合在线久综合在线观看| 久久超碰97人人做人人爱| 亚洲精品ww久久久久久p站 | 一区二区三区日韩在线观看| 日韩欧美国产1| 在线观看www91| 成人av在线资源| 激情成人午夜视频| 亚洲国产精品一区二区尤物区| 亚洲国产精品激情在线观看 | 中文字幕亚洲电影| 日韩欧美国产1| 欧美日韩国产影片| 99精品久久只有精品| 国产一区二区三区四区五区入口| 性欧美大战久久久久久久久| 日韩久久一区二区| www国产成人免费观看视频 深夜成人网| 欧美视频三区在线播放| 99久久精品国产毛片| 成人丝袜视频网| 国产白丝精品91爽爽久久| 麻豆精品一区二区| 日本欧美一区二区| 日韩电影在线一区二区| 午夜不卡在线视频| 午夜欧美2019年伦理 | 日韩三级在线免费观看| 色成年激情久久综合| 91在线视频观看| 92精品国产成人观看免费 | 欧美日韩国产系列| 欧美色图免费看| 在线免费一区三区| 欧美无砖砖区免费| 在线不卡欧美精品一区二区三区| 色8久久人人97超碰香蕉987| 94-欧美-setu| 色8久久精品久久久久久蜜| 91亚洲大成网污www| 色综合一个色综合| 欧美亚洲高清一区| 欧美伦理视频网站| 日韩欧美在线不卡| 日本一区二区三区免费乱视频| 国产三级三级三级精品8ⅰ区| xnxx国产精品| 国产精品国产三级国产a| 亚洲色图一区二区三区| 亚洲精品第1页| 日本成人在线网站| 国产一区二三区| 成人av资源在线| 欧美系列在线观看| 欧美一区二区三级| 国产三级欧美三级| 亚洲亚洲精品在线观看| 美日韩一区二区| 不卡的电影网站| 欧美日韩精品一区视频| 久久综合九色综合欧美98| 中文字幕日韩精品一区| 日韩专区一卡二卡| 国产成人日日夜夜| 欧美性高清videossexo| 精品国产一区二区精华 | 欧美日韩亚洲综合在线| 欧美成人猛片aaaaaaa| 国产精品黄色在线观看| 亚洲成av人片在线观看无码| 国产在线不卡视频| 欧美在线综合视频| 久久精品亚洲精品国产欧美 | 欧美视频在线观看一区| 欧美精品一区二区蜜臀亚洲| 一区二区在线观看av| 国产一区在线不卡| 91高清在线观看| 久久久精品国产免费观看同学| 亚洲最新在线观看| 国产黄人亚洲片| 91麻豆精品久久久久蜜臀| 国产欧美一区二区精品仙草咪| 午夜伦欧美伦电影理论片| 国产99一区视频免费| 欧美高清一级片在线| 国产女主播一区| 国产一区福利在线| 91精品国产黑色紧身裤美女|