0001 function job_edit_act_normalize(inst_id)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 global vbmeg_inst;
0015 if isempty(vbmeg_inst.editact{inst_id}.xxP), return; end
0016
0017
0018
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
0028
0029
0030
0031
0032 job_edit_act_stack(inst_id);
0033
0034 if (max(abs(xxP{1})))==0, return; end
0035
0036
0037 i = get(lb1,'Value');
0038 keyset = get(lb1,'String');
0039 act = vb_get_act(actfile,keyset{i});
0040
0041
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
0048
0049
0050 job_edit_act_update_spatialpattern(inst_id);