www.gusucode.com > vision 源码程序 matlab案例代码 > vision/CheckWhetherAConnectionExistsBetweenTwoViewsExample.m

    %% Check Whether a Connection Exists Between Two Views
% 
% Create an empty |viewSet| object.
vSet = viewSet;
%%
% Add a pair of views.
vSet = addView(vSet,1);
vSet = addView(vSet,2);
%%
% Add a connection.
vSet = addConnection(vSet,1,2);
%%
% Confirm that the connection exists.
tf = hasConnection(vSet,1,2);