IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 2, 2005, 5:21:36 PM (21 years ago)
Author:
Paul Price
Message:

Mostly working, in general.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/scripts/src/phase2/papPhase2.c

    r5462 r5464  
    577577                                            if (coeff->type.type != PS_TYPE_F64) {
    578578                                                psVector *temp = psVectorCopy(NULL, coeff, PS_TYPE_F64);
    579                                                 psFree(coeff);
    580579                                                coeff = temp;
    581580                                            }
    582581                                            // 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);
    588586                                            (void)pmNonLinearityPolynomial(inputReadout, correction);
    589587                                            psFree(coeff);
     
    726724                }
    727725
     726                // XXX: Temporary: until the other functions are altered to do this themselves.
    728727                // Trim, so that flat, fringe etc computations are faster.
     728#ifndef PRODUCTION
    729729                psRegion *trimRegion = psMetadataLookupPtr(NULL, inputCell->concepts, "CELL.TRIMSEC");
    730730                psImage *trimmed = psImageSubset(inputReadout->image, *trimRegion);
    731731                psFree(inputReadout->image);
    732732                inputReadout->image = trimmed;
     733#endif
    733734
    734735                // Flat-field correction
Note: See TracChangeset for help on using the changeset viewer.