⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sample_script_run.m

📁 Standard model object recognition matlab code
💻 M
字号:
% sample_script_run%% It is an example of how to run the model on multiple images (of% the same size).% Define file names for intermediate, learned features.global learn_file;learn_file{3} = './Data/f_S2b_natural_img';learn_file{5} = './Data/f_S2_natural_img';learn_file{7} = './Data/f_S3_natural_img';learn_file{9} = './Data/f_S4_natural_img';stim_dir = './Images/';save_dir = './Model_Resp/';level = [1 1 1 1]; % Upto C2b, bypass route only, and save C2bs_lvl = [0 0 0 1];r_out = main_model_load_save(stim_dir,level,s_lvl,save_dir);% Note that if you want to reuse a filter file, define for example.% filt_file = 'Filt_256x256.mat'; in init_filt_oper.m%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Other examples% Example 1stim_dir = './Model_Resp/Layer2/';save_dir = './Model_Resp/';level = [0 0 0 0 1 1 1 1]; % Upto C3, main route only, and save C2, C3s_lvl = [0 0 0 0 0 1 0 1];r_out = main_model_load_save(stim_dir,level,s_lvl,save_dir);% Example 2stim_dir = './Model_Resp/Layer2/';save_dir = './Model_Resp/';level = [0 0 1 1 1 1 1 1]; % Compute full model.s_lvl = [0 1 0 1 0 1 0 1];r_out = main_model_load_save(stim_dir,level,s_lvl,save_dir);% Example 3stim_dir = './Images/'; save_dir = './Model_Resp/';level = [1 1 1 1 1 1 1 1]; % Compute full model.s_lvl = [0 1 0 1 0 1 0 1];r_out = main_model_load_save(stim_dir,level,s_lvl,save_dir);% Example 4stim_dir = './Model_Resp/Layer2/';save_dir = './Model_Resp/';level = [1 1 1 1 1 1 1 1]; % Compute full model.r_out = main_model_load_save(stim_dir,level);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -