Changeset 23427
- Timestamp:
- Mar 19, 2009, 11:30:36 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/detrend_resid_exp.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/detrend_resid_exp.pl
r23342 r23427 124 124 # write the normalizations to a file as a metadata config file in the form: class_id F32 value 125 125 # XXX a possible optimization: if there is only one imfile, skip normalization 126 # Correcting the resid imfiles and stats requires us to *divide* by the normalization 127 # we do this by inverting the normalization here: 126 128 my $normsFile; 127 129 ($normsFile, $normsName) = tempfile( "/tmp/$exp_tag.detresid.$det_id.$iter.norms.XXXX", UNLINK => !$save_temps ); … … 129 131 foreach my $norm (@$normsMD) { 130 132 my $class_id = $norm->{class_id}; 131 my $normalization =$norm->{norm};133 my $normalization = 1.0 / $norm->{norm}; 132 134 133 135 $norms{$class_id} = $normalization;
Note:
See TracChangeset
for help on using the changeset viewer.
