Changeset 29004 for trunk/psModules/src/imcombine/pmSubtraction.c
- Timestamp:
- Aug 20, 2010, 1:14:11 PM (16 years ago)
- Location:
- trunk/psModules
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/imcombine/pmSubtraction.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules
- Property svn:mergeinfo deleted
-
trunk/psModules/src/imcombine/pmSubtraction.c
r28667 r29004 33 33 #define USE_KERNEL_ERR // Use kernel error image? 34 34 #define NUM_COVAR_POS 5 // Number of positions for covariance calculation 35 36 // XXX we need to pass these fwhm values elsewhere. These should go on one of the structure, but 37 // things are too confusing to do that now. just save them here. 38 static float FWHM1 = NAN; 39 static float FWHM2 = NAN; 35 40 36 41 ////////////////////////////////////////////////////////////////////////////////////////////////////////////// … … 752 757 753 758 754 bool pmSubtractionConvolveStamp (pmSubtractionStamp *stamp, constpmSubtractionKernels *kernels, int footprint)759 bool pmSubtractionConvolveStamp (pmSubtractionStamp *stamp, pmSubtractionKernels *kernels, int footprint) 755 760 { 756 761 PS_ASSERT_PTR_NON_NULL(stamp, false); … … 774 779 stamp->convolutions1 = convolveStamp(stamp->convolutions1, stamp->image1, kernels, footprint); 775 780 stamp->convolutions2 = convolveStamp(stamp->convolutions2, stamp->image2, kernels, footprint); 781 if (!pmSubtractionKernelPenaltiesStamp(stamp, kernels)) { 782 psAbort("failure in penalties"); 783 } 776 784 break; 777 785 default: … … 1215 1223 bool threaded = pmSubtractionThreaded(); // Running threaded? 1216 1224 1225 // XXX This is no longer used 1217 1226 psImage *convMask = NULL; // Convolved mask image (common to inputs 1 and 2) 1218 1227 if (subMask) { … … 1413 1422 return true; 1414 1423 } 1424 1425 bool pmSubtractionGetFWHMs(float *fwhm1, float *fwhm2) { 1426 1427 *fwhm1 = FWHM1; 1428 *fwhm2 = FWHM2; 1429 return true; 1430 } 1431 1432 bool pmSubtractionSetFWHMs(float fwhm1, float fwhm2) { 1433 1434 FWHM1 = fwhm1; 1435 FWHM2 = fwhm2; 1436 return true; 1437 }
Note:
See TracChangeset
for help on using the changeset viewer.
