Changeset 29215 for branches/eam_branches/ipp-20100823/psModules/src/imcombine/pmSubtractionStamps.c
- Timestamp:
- Sep 23, 2010, 7:02:45 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100823/psModules/src/imcombine/pmSubtractionStamps.c
r29170 r29215 106 106 107 107 if (xMax < xMin) { 108 fprintf (stderr, "%f,%f : x-border\n", xRaw, yRaw);109 return false;108 // fprintf (stderr, "%f,%f : x-border\n", xRaw, yRaw); 109 return false; 110 110 } 111 111 if (yMax < yMin) { 112 fprintf (stderr, "%f,%f : y-border\n", xRaw, yRaw);113 return false;112 // fprintf (stderr, "%f,%f : y-border\n", xRaw, yRaw); 113 return false; 114 114 } 115 115 … … 458 458 // Take stamps off the top of the (sorted) list 459 459 for (int j = xList->n - 1; j >= 0 && !goodStamp; j--) { 460 fprintf (stderr, "%d : xList: %ld elements\n", i, xList->n);460 // fprintf (stderr, "%d : xList: %ld elements\n", i, xList->n); 461 461 // Chop off the top of the list 462 462 xList->n = j; … … 706 706 707 707 // storage vector for flux data 708 psStats *stats = psStatsAlloc (PS_STAT_ ROBUST_MEDIAN | PS_STAT_ROBUST_STDEV);708 psStats *stats = psStatsAlloc (PS_STAT_SAMPLE_MEDIAN); 709 709 psVector *flux1 = psVectorAllocEmpty(2*stamps->num, PS_TYPE_F32); 710 710 psVector *flux2 = psVectorAllocEmpty(2*stamps->num, PS_TYPE_F32); … … 734 734 psAbort ("failed to generate stats"); 735 735 } 736 float f1 = stats-> robustMedian;736 float f1 = stats->sampleMedian; 737 737 738 738 psStatsInit (stats); … … 740 740 psAbort ("failed to generate stats"); 741 741 } 742 float f2 = stats-> robustMedian;742 float f2 = stats->sampleMedian; 743 743 744 744 stamps->window1->kernel[y][x] = f1; … … 755 755 } 756 756 } 757 758 #if 0 759 { 760 psFits *fits = NULL; 761 fits = psFitsOpen ("window1.fits", "w"); 762 psFitsWriteImage (fits, NULL, stamps->window1->image, 0, NULL); 763 psFitsClose (fits); 764 fits = psFitsOpen ("window2.fits", "w"); 765 psFitsWriteImage (fits, NULL, stamps->window2->image, 0, NULL); 766 psFitsClose (fits); 767 } 768 #endif 757 769 758 770 psTrace("psModules.imcombine", 3, "Window total (1): %f, threshold: %f\n", sum1, (1.0 - stamps->normFrac) * sum1);
Note:
See TracChangeset
for help on using the changeset viewer.
