Changeset 24244 for branches/cnb_branches/cnb_branch_20090301/psModules/src/imcombine/pmSubtractionEquation.c
- Timestamp:
- May 26, 2009, 1:59:32 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090301
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090301
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/psModules
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/psModules/src/imcombine/pmSubtractionEquation.c
r21422 r24244 749 749 } 750 750 751 psString ds9name = NULL; // Filename for ds9 region file 752 static int ds9num = 0; // File number for ds9 region file 753 psStringAppend(&ds9name, "stamps_solution_%d.ds9", ds9num); 754 FILE *ds9 = pmSubtractionStampsFile(stamps, ds9name, "solution stamps"); 755 psFree(ds9name); 756 ds9num++; 757 751 758 if (kernels->mode != PM_SUBTRACTION_MODE_DUAL) { 752 759 // Accumulate the least-squares matricies and vectors … … 761 768 (void)psBinaryOp(sumMatrix, sumMatrix, "+", stamp->matrix1); 762 769 (void)psBinaryOp(sumVector, sumVector, "+", stamp->vector1); 770 pmSubtractionStampPrint(ds9, stamp->x, stamp->y, stamps->footprint, "green"); 763 771 numStamps++; 772 } else if (stamp->status == PM_SUBTRACTION_STAMP_REJECTED) { 773 pmSubtractionStampPrint(ds9, stamp->x, stamp->y, stamps->footprint, "red"); 764 774 } 765 775 } … … 788 798 789 799 psVector *permutation = NULL; // Permutation vector, required for LU decomposition 790 psImage *luMatrix = psMatrixLUD (NULL, &permutation, sumMatrix);800 psImage *luMatrix = psMatrixLUDecomposition(NULL, &permutation, sumMatrix); 791 801 psFree(sumMatrix); 792 802 if (!luMatrix) { … … 797 807 return NULL; 798 808 } 799 kernels->solution1 = psMatrixLUSol ve(kernels->solution1, luMatrix, sumVector, permutation);809 kernels->solution1 = psMatrixLUSolution(kernels->solution1, luMatrix, sumVector, permutation); 800 810 801 811 psFree(sumVector); … … 830 840 (void)psBinaryOp(sumVector1, sumVector1, "+", stamp->vector1); 831 841 (void)psBinaryOp(sumVector2, sumVector2, "+", stamp->vector2); 842 pmSubtractionStampPrint(ds9, stamp->x, stamp->y, stamps->footprint, "green"); 832 843 numStamps++; 833 844 } … … 990 1001 // XXXXX Free temporary matrices and vectors 991 1002 1003 } 1004 1005 if (ds9) { 1006 fclose(ds9); 992 1007 } 993 1008
Note:
See TracChangeset
for help on using the changeset viewer.
