- Timestamp:
- Sep 15, 2009, 4:03:13 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715/psModules/src/imcombine/pmSubtraction.c
r24298 r25407 733 733 734 734 int pmSubtractionRejectStamps(pmSubtractionKernels *kernels, pmSubtractionStampList *stamps, 735 const psVector *deviations, psImage *subMask, float sigmaRej , int footprint)735 const psVector *deviations, psImage *subMask, float sigmaRej) 736 736 { 737 737 PM_ASSERT_SUBTRACTION_KERNELS_NON_NULL(kernels, false); … … 821 821 ds9num++; 822 822 823 int footprint = stamps->footprint; // Half-size of stamp region of interest 823 824 int numRejected = 0; // Number of stamps rejected 824 825 int numGood = 0; // Number of good stamps … … 956 957 PS_ASSERT_FLOAT_WITHIN_RANGE(y, -1.0, 1.0, NULL); 957 958 958 psArray *images = psArrayAlloc( solution->n - 1); // Images of each kernel to return959 psVector *fakeSolution = psVectorAlloc( solution->n, PS_TYPE_F64); // Fake solution vector959 psArray *images = psArrayAlloc(kernels->solution1->n - 1); // Images of each kernel to return 960 psVector *fakeSolution = psVectorAlloc(kernels->solution1->n, PS_TYPE_F64); // Fake solution vector 960 961 psVectorInit(fakeSolution, 0.0); 961 962 962 for (int i = 0; i < solution->n - 1; i++) {963 fakeSolution->data.F64[i] = solution->data.F64[i];963 for (int i = 0; i < kernels->solution1->n - 1; i++) { 964 fakeSolution->data.F64[i] = kernels->solution1->data.F64[i]; 964 965 images->data[i] = pmSubtractionKernelImage(kernels, x, y, wantDual); 965 966 fakeSolution->data.F64[i] = 0.0;
Note:
See TracChangeset
for help on using the changeset viewer.
