Home > functions > job > job_edit_act_dir > job_edit_act_normalize.m

job_edit_act_normalize

PURPOSE ^

Normalize activity map

SYNOPSIS ^

function job_edit_act_normalize(inst_id)

DESCRIPTION ^

 Normalize activity map

 --- Syntax
 job_edit_act_normalize(inst_id)

 --- History
 ????-??-?? Taku Yoshioka
 2008-09-04 Taku Yoshioka

 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function job_edit_act_normalize(inst_id)
0002 % Normalize activity map
0003 %
0004 % --- Syntax
0005 % job_edit_act_normalize(inst_id)
0006 %
0007 % --- History
0008 % ????-??-?? Taku Yoshioka
0009 % 2008-09-04 Taku Yoshioka
0010 %
0011 % Copyright (C) 2011, ATR All Rights Reserved.
0012 % License : New BSD License(see VBMEG_LICENSE.txt)
0013 
0014 global vbmeg_inst; 
0015 if isempty(vbmeg_inst.editact{inst_id}.xxP), return; end
0016 
0017 %
0018 % Global variables
0019 %
0020 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0021 lb1 = vbmeg_inst.editact{inst_id}.lb1; 
0022 xxP = vbmeg_inst.editact{inst_id}.xxP;
0023 h_fig = vbmeg_inst.editact{inst_id}.h_fig;
0024 actfile = vbmeg_inst.editact{inst_id}.actfile; 
0025 
0026 %
0027 % Normalize activity map
0028 %
0029 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0030 
0031 % Stack
0032 job_edit_act_stack(inst_id);
0033 
0034 if (max(abs(xxP{1})))==0, return; end
0035 
0036 % Get activity map
0037 i = get(lb1,'Value');
0038 keyset = get(lb1,'String');
0039 act = vb_get_act(actfile,keyset{i});
0040 
0041 % Average activity information
0042 set(h_fig,'Pointer','watch');
0043 xxP{1} = xxP{1}/max(abs(xxP{1}));
0044 vbmeg_inst.editact{inst_id}.xxP = xxP;
0045 
0046 %
0047 % Update plot
0048 %
0049 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0050 job_edit_act_update_spatialpattern(inst_id);

Generated on Tue 27-Aug-2013 11:46:04 by m2html © 2005