Changeset 19487
- Timestamp:
- Sep 11, 2008, 10:52:16 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/imcombine/pmStack.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmStack.c
r19482 r19487 8 8 * @author GLG, MHPCC 9 9 * 10 * @version $Revision: 1. 39$ $Name: not supported by cvs2svn $11 * @date $Date: 2008-09-11 03:37:58$10 * @version $Revision: 1.40 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2008-09-11 20:52:16 $ 12 12 * Copyright 2004-2007 Institute for Astronomy, University of Hawaii 13 13 * … … 30 30 #define PIXEL_LIST_BUFFER 100 // Number of entries to add to pixel list at a time 31 31 #define PIXEL_MAP_BUFFER 2 // Number of entries to add to pixel map at a time 32 32 //#define VARIANCE_FACTORS // Use variance factors when calculating the variances? 33 33 #define NUM_DIRECT_STDEV 5 // For less than this number of values, measure stdev directly 34 34 … … 312 312 // Use variance to check that the two are consistent 313 313 float diff = pixelData->data.F32[0] - pixelData->data.F32[1]; 314 #if VARIANCE_FACTORS 314 315 float sigma2 = pixelVariances->data.F32[0] * varFactors->data.F32[pixelSources->data.U16[0]] + 315 316 pixelVariances->data.F32[1] * varFactors->data.F32[pixelSources->data.U16[1]]; 317 #else 318 float sigma2 = pixelVariances->data.F32[0] + pixelVariances->data.F32[1]; 319 #endif 316 320 if (PS_SQR(diff) > PS_SQR(rej) * sigma2) { 317 321 // Not consistent: mark both for inspection … … 342 346 float rej2 = PS_SQR(rej); // Rejection level squared 343 347 for (int i = 0; i < num; i++) { 348 #if VARIANCE_FACTORS 344 349 pixelVariances->data.F32[i] *= rej2 * varFactors->data.F32[pixelSources->data.U16[i]]; 350 #else 351 pixelVariances->data.F32[i] *= rej2; 352 #endif 345 353 } 346 354 }
Note:
See TracChangeset
for help on using the changeset viewer.
