Changeset 5464 for trunk/archive/scripts/src/phase2/papPhase2.c
- Timestamp:
- Nov 2, 2005, 5:21:36 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/archive/scripts/src/phase2/papPhase2.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/archive/scripts/src/phase2/papPhase2.c
r5462 r5464 577 577 if (coeff->type.type != PS_TYPE_F64) { 578 578 psVector *temp = psVectorCopy(NULL, coeff, PS_TYPE_F64); 579 psFree(coeff);580 579 coeff = temp; 581 580 } 582 581 // Polynomial correction 583 psPolynomial1D *correction = psPolynomial1DAlloc(PS_POLYNOMIAL_ORD, 584 coeff->n + 1); 585 for (int i = 0; i < coeff->n; i++) { 586 correction->coeff[i] = coeff->data.F64[i]; 587 } 582 psPolynomial1D *correction = psPolynomial1DAlloc(coeff->n - 1, 583 PS_POLYNOMIAL_ORD); 584 psFree(correction->coeff); 585 correction->coeff = psMemIncrRefCounter(coeff->data.F64); 588 586 (void)pmNonLinearityPolynomial(inputReadout, correction); 589 587 psFree(coeff); … … 726 724 } 727 725 726 // XXX: Temporary: until the other functions are altered to do this themselves. 728 727 // Trim, so that flat, fringe etc computations are faster. 728 #ifndef PRODUCTION 729 729 psRegion *trimRegion = psMetadataLookupPtr(NULL, inputCell->concepts, "CELL.TRIMSEC"); 730 730 psImage *trimmed = psImageSubset(inputReadout->image, *trimRegion); 731 731 psFree(inputReadout->image); 732 732 inputReadout->image = trimmed; 733 #endif 733 734 734 735 // Flat-field correction
Note:
See TracChangeset
for help on using the changeset viewer.
