- Timestamp:
- Aug 9, 2010, 8:27:57 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100621/psModules/src/imcombine/pmSubtraction.c
r28796 r28866 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: … … 1413 1421 return true; 1414 1422 } 1423 1424 bool pmSubtractionGetFWHMs(float *fwhm1, float *fwhm2) { 1425 1426 *fwhm1 = FWHM1; 1427 *fwhm2 = FWHM2; 1428 return true; 1429 } 1430 1431 bool pmSubtractionSetFWHMs(float fwhm1, float fwhm2) { 1432 1433 FWHM1 = fwhm1; 1434 FWHM2 = fwhm2; 1435 return true; 1436 }
Note:
See TracChangeset
for help on using the changeset viewer.
