global G_STARTUP is unnecessery loop is stupid
% Prepares your matlab workspace for using OpenVV.
global G_STARTUP;
if isempty(G_STARTUP)
G_STARTUP = true;
incl = {'my_exp_util', 'my_img_util'};
for i = 1:length(incl)
addpath(genpath(fullfile(incl{i})));
end
disp('OpenVV is ready.');
clear i incl;
end
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 简化版
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
addpath('my_exp_util', 'my_img_util');
savepath;