www.gusucode.com > IPCV_Eval_Kit_R2019a_0ce6858工具箱源码程序matlab > IPCV_Eval_Kit_R2019a_0ce6858/code/demo_files/I1_02_visualization.m

    % 僗僋儕僾僩傪奐偒丄幚峴丅GUI偺Next儃僞儞傪墴偟偰師傊
clear;close all;clc

addpath('.\I1_02_grademo')

%% 2師尦儔僀儞僾儘僢僩
line2d
ft=figure('units','normalized','position',[0.0381 0.6969 0.2871 0.2276], ...
       'menubar','none','numbertitle','off');
at=axes('visible','off');
text(0.5,0.5,{'2師尦儔僀儞僾儘僢僩','(plot)'},'fontname','俵俽 僑僔僢僋', ...
        'fontsize',12,'FontWeight','bold','tag','titletext','parent',at, ...
        'VerticalAlignment','middle','HorizontalAlignment','center');
uicontrol('Style', 'pushbutton', 'String', 'Next',...
        'Position', [20 20 100 40],'parent',ft,...
        'Callback', 'a=false;');
a=true; while (a); drawnow; end;

%%  2師尦儔僀儞僾儘僢僩(儅乕僇乕偮偒)
figure(1)
h=findobj(gca,'type','line');
set(h(1),'marker','o')
set(h(2),'marker','*')
set(h(3),'marker','d')
grid on
a=true; while (a); drawnow; end

%% 嬌嵗昗僾儘僢僩 (polar)
clear
polarplot
ht=findobj('tag','titletext');
set(ht,'string','嬌嵗昗僾儘僢僩 (polar)')
a=true; while (a); drawnow; end

%% 僐儞僷僗僾儘僢僩
clear
compassplot
ht=findobj('tag','titletext');
set(ht,'string',{'僐儞僷僗僾儘僢僩','(compass)'})
a=true; while (a); drawnow; end

%% 椞堟偺揾傝偮傇偟 (fill)
clear
fill2d
ht=findobj('tag','titletext');
set(ht,'string','椞堟偺揾傝偮傇偟 (fill)')
a=true; while (a); drawnow; end

%% 2師尦棧嶶僾儘僢僩 (stem)
clear
stem2d
ht=findobj('tag','titletext');
set(ht,'string','2師尦棧嶶僾儘僢僩 (stem)')
a=true; while (a); drawnow; end

%% 奒抜忬僾儘僢僩 (stairs)
clear
stair2d
ht=findobj('tag','titletext');
set(ht,'string','奒抜忬僾儘僢僩 (stairs)')
a=true; while (a); drawnow; end

%% 3師尦儔僀儞僾儘僢僩
clear
line3d
ht=findobj('tag','titletext');
set(ht,'string',{'3師尦儔僀儞僾儘僢僩','(plot3)'})
a=true; while (a); drawnow; end

%% 儊僢僔儏僾儘僢僩 (mesh)
clear
meshdemo
ht=findobj('tag','titletext');
set(ht,'string','儊僢僔儏僾儘僢僩 (mesh)')
a=true; while (a); drawnow; end

%% 昞柺僾儘僢僩 (surf)
clear
surfdemo
ht=findobj('tag','titletext');
set(ht,'string','昞柺僾儘僢僩 (surf)')
a=true; while (a); drawnow; end

%% 3師尦抐柺僾儘僢僩 (slice)
clear
slicedemo
ht=findobj('tag','titletext');
set(ht,'string','3師尦抐柺僾儘僢僩 (slice)')
a=true; while (a) drawnow; end

%% 3師尦僆僽僕僃僋僩 (surf)
clear
obj3d1
ht=findobj('tag','titletext');
set(ht,'string','3師尦僆僽僕僃僋僩 (surf)')
a=true; while (a) drawnow; end

%% 2師尦摍崅慄恾 (contour)
clear
cont2d
ht=findobj('tag','titletext');
set(ht,'string','2師尦摍崅慄恾 (contour)')
a=true; while (a) drawnow; end

%% 揾傝偮傇偟2師尦摍崅慄恾
clear
cont2df
ht=findobj('tag','titletext');
set(ht,'string',{'揾傝偮傇偟2師尦摍崅慄恾','(contour)'})
a=true; while (a); drawnow; end

%% 3師尦摍崅慄恾 (contour3)
clear
cont3d
ht=findobj('tag','titletext');
set(ht,'string','3師尦摍崅慄恾 (contour3)')
a=true; while (a) drawnow; end

%% 墌僌儔僼 (pie)
clear
piedemo
ht=findobj('tag','titletext');
set(ht,'string','墌僌儔僼 (pie)')
a=true; while (a); drawnow; end
 
%% 朹僌儔僼
% clear
% bargraph
% ht=findobj('tag','titletext');
% set(ht,'string','朹僌儔僼')
%a=true; while (a) drawnow; end

%% 僸僗僩僌儔儉 (hist)
clear
histplot
ht=findobj('tag','titletext');
set(ht,'string','僸僗僩僌儔儉 (hist)')
a=true; while (a); drawnow; end

%% 夋憸昞帵 (imshow)
clear
implot
ht=findobj('tag','titletext');
set(ht,'string','夋憸昞帵 (imshow)')
a=true; while (a); drawnow; end

%% warp
clear
warpdemo
ht=findobj('tag','titletext');
set(ht,'string',{'僒乕僼僃乕僗傊偺','夋憸偺揬傝晅偗 (warp)'})
a=true; while (a); drawnow; end

%% 傾僯儊乕僔儑儞
%clear
%anim
%ht=findobj('tag','titletext');
%set(ht,'string','傾僯儊乕僔儑儞')
% a=true; while (a) drawnow; end

%% Delaunay偺嶰妏儊僢僔儏
% clear
% close all
% tridemo
% ft=figure('units','normalized','position',[0.6367 0.7279 0.2871 0.1276], ...
%        'menubar','none','numbertitle','off');
% at=axes('visible','off');
% ht=text(0.5,0.5,'Delaunay偺嶰妏儊僢僔儏','fontname','俵俽 僑僔僢僋', ...
%         'fontsize',17,'FontWeight','bold','tag','titletext1','parent',at, ...
%         'VerticalAlignment','middle','HorizontalAlignment','center');
% a=true; while (a) drawnow; end

%% 儊僢僔儏丄僐儞僞乕
% clear
% meshcontour
% ht=findobj('tag','titletext1');
% set(ht,'string',{'儊僢僔儏丄僐儞僞乕丄','儀僋僩儖偵傛傞昞帵'})
% a=true; while (a) drawnow; end


% clear
% close all
% mixplot
% ft=figure('units','normalized','position',[0.0381 0.7969 0.2871 0.1276], ...
%        'menubar','none','numbertitle','off');
% at=axes('visible','off');
% ht=text(0.5,0.5,{'晽偺摦偒偺墌悕僾儘僢僩','僗僩儕乕儉儔僀儞','摍抣柺'},'fontname','俵俽 僑僔僢僋', ...
%         'fontsize',14,'FontWeight','bold','tag','titletext','parent',at, ...
%         'VerticalAlignment','middle','HorizontalAlignment','center');
%a=true; while (a) drawnow; end

%% 棳懍偺摍抣柺
clear
flowiso2
ht=findobj('tag','titletext');
set(ht,'string',{'棳懍偺摍抣柺', '(patch, isosurface)'})
a=true; while (a); drawnow; end

%% 僗儔僀僗暯柺忋偵摍崅慄
clear
cslice
ht=findobj('tag','titletext');
set(ht,'string',{'僗儔僀僗暯柺忋偵摍崅慄','(contourslice)'})
a=true; while (a); drawnow; end

%% 摢晹偺抐柺恾
clear
headiso_h
ht=findobj('tag','titletext');
set(ht,'string',{'摢晹偺抐柺恾','(patch, isosurface)','(patch, isocaps)'})
a=true; while (a); drawnow; end

%% movie
clear
ht=findobj('tag','titletext');
set(ht,'string',{'傾僯儊乕僔儑儞','(movie)'})
animdemo

%% 廔椆
clear
ht=findobj('tag','titletext');
set(ht,'string','廔椆')

rmpath('.\I1_02_grademo')

%% Copyright 2014 The MathWorks, Inc.