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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? som_select.m

?? it is matlab code , som(slef organizing map) tool for matlab
?? M
?? 第 1 頁 / 共 2 頁
字號:
function varargout=som_select(c_vect,plane_h,arg)%SOM_SELECT  Manual selection of map units from a visualization.%% som_select(c_vect,[plane_h])%     %   som_select(3)%   som_select(sM.labels(:,1))%%  Input arguments ([]'s are optional):%   c_vect    (scalar) number of classes %             (vector) initial class identifiers%             (cell array) of strings, class names%             (matrix) size * x 3, the color of each class%   [plane_h] (scalar) handle of the plane (axes) to be marked. %                      By default, the current axes is used (GCA).%                      For the function to work, the plot in the %                      axes must have been created with the%                      SOM_CPLANE function (or SOM_SHOW).% % Launches a GUI which allows user to select nodes from plane by % clicking them or by choosing a region (a polygon). % %   Middle mouse button: selects (or clears selection of) a single node%   Left mouse button:   lets user draw a polygon%   Right mouse button:  selects (or clears selection of) the units %                        inside the polygon% % From the GUI, the color (class) is selected as well as whether% but buttons select or clear the selection from the units. The% buttons on the bottom have the following actions: % %   'OK'    Assigns the class identifiers to the 'ans' variable in %           workspace. The value is an array of class identifiers: %           strings (cellstr) if the c_vect was an array of%           strings, a vector otherwise.%   'Clear' Removes marks from the plane.%   'Close' Closes the application. %% See also SOM_SHOW, SOM_CPLANE.% Contributed to SOM Toolbox vs2, February 2nd, 2000 by Juha Parhankangas % Copyright (c) by Juha Parhankangas% http://www.cis.hut.fi/projects/somtoolbox/% Juha Parhankangas 050100, juuso 010200%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% input argumentsif nargin < 2, plane_h = gca; endif(isempty(gcbo)), arg='start'; end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% actionswitch arg case 'start'  patch_h=find_patch(plane_h);  lattice=getfield(size(get(patch_h,'XData')),{1});  msize(1)=floor(getfield(get(plane_h,'YLim'),{2}));   msize(2)=floor(getfield(get(plane_h,'XLim'),{2})-0.5);     if lattice==6    lattice='hexa';  else    lattice='rect';  end    if any(strcmp(get(patch_h,'Tag'),{'planeBar','planePie'}))    tmp_dim=size(get(patch_h,'XData'),2)/prod(msize);    tmp_xdata=get(patch_h,'XData');    tmp_x=tmp_xdata(:,(msize(1)*(msize(2)-1)+2)*tmp_dim);    if floor(tmp_x(1)) ~= round(tmp_x(1))      lattice = 'hexa';    else      lattice = 'rect';    end  elseif strcmp(get(patch_h,'Tag'),'planePlot')    tmp_lines_h=get(gca,'Children');    test_x=mean(get(tmp_lines_h(2),'XData'));    if round(test_x) ~= floor(test_x)      lattice = 'hexa';    else      lattice = 'rect';    end    form=0.5*vis_patch('hexa');    l = size(form,1);        nx = repmat(form(:,1),1,prod(msize));    ny = repmat(form(:,2),1,prod(msize));        x=reshape(repmat(1:msize(2),l*msize(1),1),l,prod(msize));    y=repmat(repmat(1:msize(1),l,1),1,msize(2));        if strcmp(lattice,'hexa')      t = find(~rem(y(1,:),2));      x(:,t)=x(:,t)+.5;    end    x=x+nx;    y=y+ny;        colors=reshape(ones(prod(msize),1)*[NaN NaN NaN],...		   [1 prod(msize) 3]);    v=caxis;    patch_h=patch(x,y,colors,...		  'EdgeColor','none',...		  'ButtonDownFcn',...		  'som_select([],[],''click'')',...		  'Tag','planePlot');    set([gca gcf],'ButtonDownFcn','som_select([],[],''click'')');    caxis(v)  end  c_colors = [];   if iscell(c_vect)    [c_vect,c_names,c_classes]=class2num(c_vect);    if length(c_classes)<prod(msize),       c_classes = zeros(prod(msize),1);    end  else    if all(size(c_vect)>1),       c_colors = c_vect;       c_names = 1:size(c_vect,1);       c_vect = size(c_vect,1);       c_classes = zeros(prod(msize),1);    elseif length(c_vect)==prod(msize),      c_classes = c_vect;      u = unique(c_classes(isfinite(c_classes) & c_classes>0));      c_names = u;      c_vect = length(u);           elseif length(c_vect)>1,       c_names = c_vect;       c_vect = length(c_vect);      c_classes = zeros(prod(msize),1);    elseif length(c_vect)==1,      c_names = 1:c_vect;              c_classes = zeros(prod(msize),1);    end  end    udata.lattice=lattice;  udata.patch_h=patch_h;  udata.plane_h=plane_h;  udata.type=get(udata.patch_h,'Tag');  udata.msize=msize;  set(patch_h,'UserData',udata);  if strcmp(udata.type,'planePlot')    set([gca gcf],'UserData',udata);  end  str=cat(2,'som_select([],[],''click'')');  set(patch_h,'ButtonDownFcn',str);  draw_colorselection(c_names,c_colors);  tmp_data=findobj(get(0,'Children'),'Tag','SELECT_GUI');  tmp_data=get(tmp_data,'UserData');  tmp_data.c_names=c_names;  tmp_data.mat=reshape(c_classes,msize);  tmp_data.patch_h=patch_h;  tmp_data.plane_h=plane_h;  tmp_data.type=get(udata.patch_h,'Tag');  tmp_data.lattice=lattice;  tmp_data.coords=[];  tmp_data.poly_h=[];  tmp_data.msize=msize;  tmp_data.mode='select';    set(tmp_data.fig_h,'UserData',tmp_data);     draw_classes;   case 'click'  switch get(gcf,'SelectionType')   case 'open'    return;   case {'normal','alt'}    draw_poly;   case 'extend'    click;  end  case 'choose'  draw_colorselection(0,0,'choose'); case 'close'  close_gui; case 'clear'  clear_plane; case 'rb'  rb_control; case 'ret_mat'  gui=findobj(get(0,'Children'),'Tag','SELECT_GUI');  gui=get(gui,'UserData');  mat=reshape(gui.mat,prod(size(gui.mat)),1);  if ~isempty(gui.c_names)    if isnumeric(gui.c_names), tmp=zeros(length(mat),1);    else tmp=cell(length(mat),1);    end    for i=1:length(gui.c_names)      inds=find(mat==i);      tmp(inds)=gui.c_names(i);    end           mat=tmp;  end    varargout{1}=mat;  %gui.mat=zeros(size(gui.mat));  %set(gui.fig_h,'UserData',gui);  %h=findobj(get(gui.plane_h,'Children'),'Tag','SEL_PATCH');  %delete(h);end  return;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% subfunctionsfunction rb_control;h=findobj(get(gcf,'Children'),'Style','radiobutton');set(h,'Value',0);set(gcbo,'Value',1);udata=get(gcf,'UserData');if strcmp(get(gcbo,'Tag'),'Radiobutton1')  udata.mode='select';else  udata.mode='clear';endset(gcf,'UserData',udata);%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%function clear_planeh=findobj(get(0,'Children'),'Tag','SELECT_GUI');gui=get(h,'UserData');if strcmp(get(gui.patch_h,'Tag'),'planePlot')  colors=reshape(get(gui.patch_h,'FaceVertexCData'),[prod(gui.msize) 3]);  colors(:,:)=NaN;  set(gui.patch_h,'FaceVertexCData',colors);endh=findobj(get(gui.plane_h,'Children'),'Tag','SEL_PATCH');gui.mat=zeros(gui.msize);set(gui.fig_h,'UserData',gui);delete(h);%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%function clickudata=get(gcbo,'UserData');udata=get(udata.patch_h,'UserData');  coords=get(gca,'CurrentPoint');row=round(coords(1,2));if row > udata.msize(1), row = udata.msize(1); endif row < 1, row = 1; endif any(strcmp(udata.lattice,{'hexa','hexaU'})) & ~mod(row,2),   col=floor(coords(1,1))+0.5;  if col > udata.msize(2)+0.5, col=udata.msize(2)+0.5; endelse  col=round(coords(1,1));  if col > udata.msize(2), col=udata.msize(2); endendif col < 1, col = 1; endif strcmp(udata.type,'planePlot')  if ~mod(row,2) & strcmp(udata.lattice,'hexa'), col=round(col-0.5); end    ind=sub2ind(udata.msize,row,col);  colors=reshape(get(udata.patch_h,'FaceVertexCData'),[prod(udata.msize) 3]);  gui=findobj(get(0,'Children'),'Tag','SELECT_GUI');  gui=get(gui,'UserData');    if ~isempty(gui.curr_col) & all(~isnan(colors(ind,1,:))),    if ~strcmp(gui.mode,'clear') & ~all(gui.curr_col == colors(ind,:))      colors(ind,:)=gui.curr_col;      gui.mat(row,col)=gui.class;    else      colors(ind,:)=[NaN NaN NaN];      gui.mat(row,col)=0;    end  elseif strcmp(gui.mode,'clear')    colors(ind,:)=[NaN NaN NaN];    gui.mat(row,col)=0;  elseif isempty(gui.curr_col)    return;  else    gui.mat(row,col)=gui.class;    colors(ind,:)=gui.curr_col;  end  set(udata.patch_h,'FaceVertexCData',colors);  set(gui.fig_h,'UserData',gui);  return;end  if any(strcmp(udata.type,{'planePie','planeBar'}))  [x,y]=pol2cart(0:0.1:2*pi,0.5);  coords=[x';0.5]*0.7;  coords(:,2)=[y';0]*0.7;elseif strcmp(udata.lattice,'hexa');  coords=0.7*vis_patch('hexa');else  coords=0.7*vis_patch('rect');endcoords(:,1)=coords(:,1)+col;coords(:,2)=coords(:,2)+row;if ~mod(row,2) & strcmp(udata.lattice,'hexa'), col=round(col-0.5); end hold on;if gco == udata.patch_h  gui=findobj(get(0,'Children'),'Tag','SELECT_GUI');  gui=get(gui,'UserData');  if isnan(gui.curr_col) | strcmp(gui.mode,'clear'), return; end  h=fill(coords(:,1),coords(:,2),gui.curr_col);  str=cat(2,'som_select([],[],''click'')');  set(h,'ButtonDownFcn',str,'Tag','SEL_PATCH');  tmp.patch_h=udata.patch_h;  set(h,'UserData',tmp);  gui.mat(row,col)=gui.class;  set(gui.fig_h,'UserData',gui);else  gui=findobj(get(0,'Children'),'Tag','SELECT_GUI');  gui=get(gui,'UserData');  if ~all(get(gcbo,'FaceColor') == gui.curr_col) & ~strcmp(gui.mode,'clear'),    if ~isnan(gui.curr_col),       set(gcbo,'FaceColor',gui.curr_col);      gui.mat(row,col) = gui.class;    end  else    gui.mat(row,col)=0;    delete(gco);  end  set(gui.fig_h,'UserData',gui);end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%function draw_colorselection(varargin)if length(varargin)==2,   if length(varargin{1})==1,     n = varargin{1};    names = 1:n;  else    n = length(varargin{1});     names = varargin{1};   end  colors = varargin{2};     shape=[0.5 -0.5;0.5 0.5;1.5 0.5;1.5 -0.5];  rep_x=repmat(shape(:,1),1,n);  rep_y=repmat(shape(:,2),1,n);  for i=0:getfield(size(rep_y,2))-1, rep_x(:,i+1)=rep_x(:,i+1)+i; end  if isempty(colors), colors=jet(n); end  data=som_select_gui;  data.colors=colors;  data.curr_col=NaN;  data.class=0;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲激情一二三区| 久久亚洲综合色一区二区三区| 综合中文字幕亚洲| 成人av网站在线观看| 亚洲视频 欧洲视频| 欧美亚洲尤物久久| 7777精品伊人久久久大香线蕉完整版| 亚洲视频在线一区| 欧美偷拍一区二区| 麻豆精品视频在线| 久久久久久久精| 99在线热播精品免费| 一区av在线播放| 日韩亚洲电影在线| 成人黄色a**站在线观看| 亚洲欧美电影院| 欧美成人精品高清在线播放| 国产精品一区三区| 亚洲一本大道在线| 久久综合久久鬼色| 色噜噜狠狠色综合中国| 免费成人小视频| 欧美精彩视频一区二区三区| 91在线精品一区二区| 午夜精品123| 亚洲国产高清在线| 91精品国产综合久久精品麻豆 | 男人的天堂久久精品| 国产亚洲欧美一级| 欧美性大战久久久| 国产成人免费xxxxxxxx| 亚洲永久免费av| 国产婷婷色一区二区三区四区 | 国产主播一区二区| 亚洲欧美视频在线观看视频| 日韩你懂的在线播放| caoporm超碰国产精品| 美女久久久精品| 亚洲色图丝袜美腿| 久久人人爽人人爽| 欧美日韩一区二区欧美激情| 高清视频一区二区| 欧美aaaaaa午夜精品| 亚洲另类一区二区| 久久久影视传媒| 欧美丰满少妇xxxxx高潮对白| 粉嫩高潮美女一区二区三区| 日本va欧美va瓶| 亚洲一区二区欧美日韩| 亚洲视频你懂的| 国产精品沙发午睡系列990531| 欧美一区二区三区色| 欧美日韩国产天堂| 欧美三级中文字| 91丨九色porny丨蝌蚪| 国产成人免费视频网站| 极品尤物av久久免费看| 日本成人在线不卡视频| 亚洲在线中文字幕| 亚洲精选视频免费看| 最新高清无码专区| 国产精品你懂的| 国产欧美精品在线观看| 精品国产凹凸成av人导航| 欧美丰满少妇xxxxx高潮对白| 欧美三级视频在线| 亚洲中国最大av网站| 亚洲色图一区二区| 亚洲欧美日韩国产综合| 中文字幕在线观看不卡| 中文字幕不卡的av| 国产精品久久午夜夜伦鲁鲁| 欧美激情一区二区三区蜜桃视频 | 亚洲国产精品黑人久久久| 欧美不卡一区二区| 久久综合久久综合久久| 久久美女艺术照精彩视频福利播放| 精品国产污污免费网站入口| 日韩亚洲欧美在线| 精品少妇一区二区三区在线播放| 欧美videos大乳护士334| 欧美v亚洲v综合ⅴ国产v| 久久综合一区二区| 国产欧美日韩久久| 中文字幕一区二区三区在线播放 | 91丝袜国产在线播放| 91丨porny丨蝌蚪视频| 91福利精品视频| 欧美乱妇15p| 日韩美女视频在线| 久久男人中文字幕资源站| 国产日本一区二区| 亚洲乱码精品一二三四区日韩在线| 亚洲精品成人少妇| 免费在线观看日韩欧美| 国产综合成人久久大片91| 国产成人鲁色资源国产91色综| 国产成人av一区二区三区在线| 99在线视频精品| 欧美日韩一区二区不卡| 日韩免费高清av| 1024成人网| 午夜精品久久久久久久久久久 | 精品88久久久久88久久久| 国产日产欧美一区二区三区| 一区二区三区在线免费观看 | 亚洲一区免费在线观看| 日本欧美在线观看| 播五月开心婷婷综合| 欧美精品1区2区3区| 国产三级精品视频| 亚洲不卡在线观看| 国产一区视频网站| 欧美自拍丝袜亚洲| 久久成人免费电影| 色综合天天综合给合国产| 91精品在线一区二区| 国产精品色在线观看| 午夜精品福利一区二区三区蜜桃| 国产麻豆午夜三级精品| 91福利国产精品| 久久精品视频网| 日本在线不卡一区| 91色在线porny| 精品免费日韩av| 亚洲一卡二卡三卡四卡五卡| 国产一区二区女| 欧美肥胖老妇做爰| 亚洲丝袜美腿综合| 黑人精品欧美一区二区蜜桃| 欧美视频一区二区在线观看| 久久精品亚洲麻豆av一区二区 | 欧美日韩精品高清| 欧美国产日韩a欧美在线观看| 日韩成人av影视| 91色视频在线| 欧美国产在线观看| 精品一区二区日韩| 欧美男生操女生| 一区二区三区国产豹纹内裤在线| 国产河南妇女毛片精品久久久| 91麻豆精品国产91久久久更新时间| 亚洲精品一卡二卡| 不卡一区二区三区四区| 久久夜色精品国产噜噜av | 国产午夜亚洲精品理论片色戒| 丝瓜av网站精品一区二区 | 欧美日韩亚洲丝袜制服| 中文字幕一区二区5566日韩| 国产麻豆视频一区| 精品国内二区三区| 精品一区二区日韩| 精品久久人人做人人爽| 麻豆国产精品777777在线| 91麻豆精品国产91久久久更新时间| 亚洲国产日产av| 在线影院国内精品| 亚洲制服丝袜av| 欧美日韩一级二级| 亚洲一区在线视频| 在线观看不卡视频| 亚洲电影一区二区三区| 欧美综合天天夜夜久久| 亚洲一区二区精品久久av| 精品视频在线免费| 亚洲不卡一区二区三区| 欧美日韩高清一区二区| 日韩精品高清不卡| 欧美一级日韩免费不卡| 麻豆精品新av中文字幕| 精品国产欧美一区二区| 国产精品综合视频| 粉嫩av一区二区三区粉嫩| 日本一区二区三区电影| 国产69精品久久777的优势| 国产精品伦理在线| 色综合天天综合在线视频| 亚洲综合激情网| 91精品国产欧美一区二区成人| 免费久久99精品国产| 精品剧情在线观看| 国产精品亚洲а∨天堂免在线| 国产亚洲欧洲一区高清在线观看| 成人午夜免费电影| 亚洲乱码日产精品bd| 制服丝袜一区二区三区| 韩国精品免费视频| 国产精品美女久久久久aⅴ国产馆| 91色九色蝌蚪| 日韩制服丝袜av| 精品99一区二区| 99re8在线精品视频免费播放| 亚洲曰韩产成在线| 精品处破学生在线二十三| www.日本不卡| 日韩主播视频在线| 欧美高清在线视频| 欧美三级日韩在线| 国产乱码精品一区二区三| 亚洲欧美激情视频在线观看一区二区三区|