Changeset 23839 for trunk/psModules/src/imcombine/pmSubtractionEquation.c
- Timestamp:
- Apr 13, 2009, 4:05:58 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmSubtractionEquation.c
r21422 r23839 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 } … … 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.
