IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5464


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

Mostly working, in general.

Location:
trunk/archive/scripts/src/phase2
Files:
4 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
  • trunk/archive/scripts/src/phase2/phase2.config

    r5462 r5464  
    2020        @ccd01          F32     0.0 1.001 0.001 # A polynomial
    2121        @ccd02          F32     0.0 1.001 0.001 # A polynomial
    22         @ccd03          F32     0.0 1.001 0.001 # A polynomial
     22        @ccd03          F32     1.2345          # A polynomial
    2323        @ccd04          F32     0.0 1.001 0.001 # A polynomial
    2424        @ccd05          F32     0.0 1.001 0.001 # A polynomial
  • trunk/archive/scripts/src/phase2/pmNonLinear.c

    r5107 r5464  
    55 *  @author GLG, MHPCC
    66 *
    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 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2424
    2525/******************************************************************************
    26 pmNonLinearityLookup(): This routine will take an psReadout image as input
     26pmNonLinearityLookup(): This routine will take an pmReadout image as input
    2727and a 1-D polynomial.  For each pixel in the input image, the polynomial will
    2828be evaluated at that pixels value, and the image pixel will then be set to
     
    5151
    5252/******************************************************************************
    53 pmNonLinearityLookup(): This routine will take an psReadout image as input
     53pmNonLinearityLookup(): This routine will take an pmReadout image as input
    5454and two input vectors, which constitute a lookup table.  For each pixel in
    5555the input image, that pixels value will be determined in the input vector
  • trunk/archive/scripts/src/phase2/pmNonLinear.h

    r5107 r5464  
    55 *  @author GLG, MHPCC
    66 *
    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 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    1616
    1717#include "pslib.h"
    18 #include "pmFPA.h"
     18#include "pmFPA.h" // #include "pmAstrometry.h"
    1919
    2020pmReadout *pmNonLinearityPolynomial(pmReadout *in,
Note: See TracChangeset for help on using the changeset viewer.