Changeset 21183 for trunk/psModules/src/imcombine/pmSubtractionMatch.c
- Timestamp:
- Jan 26, 2009, 8:40:07 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmSubtractionMatch.c
r21149 r21183 98 98 int inner, int ringsOrder, int binning, float penalty, 99 99 bool optimum, const psVector *optFWHMs, int optOrder, float optThreshold, 100 int iter, float rej, float sysError, ps MaskType maskVal, psMaskType maskBad,101 ps MaskType maskPoor, float poorFrac, float badFrac, pmSubtractionMode subMode)100 int iter, float rej, float sysError, psImageMaskType maskVal, psImageMaskType maskBad, 101 psImageMaskType maskPoor, float poorFrac, float badFrac, pmSubtractionMode subMode) 102 102 { 103 103 if (subMode != PM_SUBTRACTION_MODE_2) { … … 565 565 if (width1 == 0 || width2 == 0) { 566 566 ratios->data.F32[index] = NAN; 567 mask->data.PS_TYPE_ MASK_DATA[index] = 0xff;567 mask->data.PS_TYPE_IMAGE_MASK_DATA[index] = 0xff; 568 568 } else { 569 569 ratios->data.F32[index] = (float)width1 / (float)width2; 570 mask->data.PS_TYPE_ MASK_DATA[index] = 0;570 mask->data.PS_TYPE_IMAGE_MASK_DATA[index] = 0; 571 571 psTrace("psModules.imcombine", 3, "Stamp %d (%.1f,%.1f) widths: %d, %d --> %f\n", 572 572 index, stamp->x, stamp->y, width1, width2, ratios->data.F32[index]); … … 596 596 PM_ASSERT_SUBTRACTION_STAMP_LIST_NON_NULL(stamps, PM_SUBTRACTION_MODE_ERR); 597 597 598 psVector *mask = psVectorAlloc(stamps->num, PS_TYPE_ MASK); // Mask for stamps598 psVector *mask = psVectorAlloc(stamps->num, PS_TYPE_VECTOR_MASK); // Mask for stamps 599 599 psVector *ratios = psVectorAlloc(stamps->num, PS_TYPE_F32); // Ratios of widths 600 600 … … 624 624 pmSubtractionStamp *stamp = stamps->stamps->data[i]; // Stamp of interest 625 625 if (stamp->status != PM_SUBTRACTION_STAMP_CALCULATE && stamp->status != PM_SUBTRACTION_STAMP_USED) { 626 mask->data.PS_TYPE_ MASK_DATA[i] = 0xff;626 mask->data.PS_TYPE_VECTOR_MASK_DATA[i] = 0xff; 627 627 continue; 628 628 }
Note:
See TracChangeset
for help on using the changeset viewer.
