Changeset 5464
- Timestamp:
- Nov 2, 2005, 5:21:36 PM (21 years ago)
- Location:
- trunk/archive/scripts/src/phase2
- Files:
-
- 4 edited
-
papPhase2.c (modified) (2 diffs)
-
phase2.config (modified) (1 diff)
-
pmNonLinear.c (modified) (3 diffs)
-
pmNonLinear.h (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 -
trunk/archive/scripts/src/phase2/phase2.config
r5462 r5464 20 20 @ccd01 F32 0.0 1.001 0.001 # A polynomial 21 21 @ccd02 F32 0.0 1.001 0.001 # A polynomial 22 @ccd03 F32 0.0 1.001 0.001# A polynomial22 @ccd03 F32 1.2345 # A polynomial 23 23 @ccd04 F32 0.0 1.001 0.001 # A polynomial 24 24 @ccd05 F32 0.0 1.001 0.001 # A polynomial -
trunk/archive/scripts/src/phase2/pmNonLinear.c
r5107 r5464 5 5 * @author GLG, MHPCC 6 6 * 7 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $8 * @date $Date: 2005- 09-23 02:58:30$7 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2005-11-03 03:21:36 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 24 24 25 25 /****************************************************************************** 26 pmNonLinearityLookup(): This routine will take an p sReadout image as input26 pmNonLinearityLookup(): This routine will take an pmReadout image as input 27 27 and a 1-D polynomial. For each pixel in the input image, the polynomial will 28 28 be evaluated at that pixels value, and the image pixel will then be set to … … 51 51 52 52 /****************************************************************************** 53 pmNonLinearityLookup(): This routine will take an p sReadout image as input53 pmNonLinearityLookup(): This routine will take an pmReadout image as input 54 54 and two input vectors, which constitute a lookup table. For each pixel in 55 55 the input image, that pixels value will be determined in the input vector -
trunk/archive/scripts/src/phase2/pmNonLinear.h
r5107 r5464 5 5 * @author GLG, MHPCC 6 6 * 7 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $8 * @date $Date: 2005- 09-23 02:58:30$7 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2005-11-03 03:21:36 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 16 16 17 17 #include "pslib.h" 18 #include "pmFPA.h" 18 #include "pmFPA.h" // #include "pmAstrometry.h" 19 19 20 20 pmReadout *pmNonLinearityPolynomial(pmReadout *in,
Note:
See TracChangeset
for help on using the changeset viewer.
