IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 30, 2005, 6:32:45 PM (20 years ago)
Author:
eugene
Message:

first pass on testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMerge/src/ppMerge.h

    r5860 r5862  
    1 #include <stdio.h>
    2 #include <strings.h>
     1# include <stdio.h>
     2# include <strings.h>
     3# include <glob.h>
    34
    4 #include "pslib.h"
     5# include "pslib.h"
    56
    6 #include "psAdditionals.h"
     7# include "psAdditionals.h"
    78
    8 #include "pmAstrometry.h"
    9 #include "pmReadout.h"
    10 #include "pmConfig.h"
    11 #include "pmFPAConstruct.h"
    12 #include "pmFPARead.h"
    13 #include "pmFPAConceptsGet.h"
    14 #include "pmFPAWrite.h"
     9# include "pmAstrometry.h"
     10# include "pmReadout.h"
     11# include "pmConfig.h"
     12# include "pmFPAConstruct.h"
     13# include "pmFPARead.h"
     14# include "pmFPAConceptsGet.h"
     15# include "pmFPAWrite.h"
    1516
    16 #include "pmFlatField.h"
    17 #include "pmMaskBadPixels.h"
    18 #include "pmNonLinear.h"
    19 #include "pmSubtractBias.h"
    20 #include "pmChipMosaic.h"
    21 //#include "pmFPAMorph.h"
     17# include "pmReadoutCombine.h"
    2218
    23 #define RECIPE "PHASE2"                // Name of the recipe to use
     19# define RECIPE "MERGE" // Name of the recipe to use
    2420
     21// XXX : same as in ppImage
    2522typedef enum {
    2623    PP_LOAD_NONE,
     
    3027} ppImageLoadDepth;
    3128
     29// XXX : same as in ppImage
    3230typedef struct {
    3331    psMetadata *site;
     
    4846
    4947typedef struct {
    50     psArray *data;
     48    psArray *input;
     49    ppFPA *output;
    5150    ppFPA *process;
    5251    ppFPA *mask;
     
    5554typedef struct {
    5655    ppImageLoadDepth imageLoadDepth;
    57 
    58     psStats *mergeStats;                // Statistics for overscan
    59     void *overscanFit;                  // Overscan fit (polynomial or spline)
    60     pmFit overscanFitType;              // Fit type for overscan
    61     pmOverscanAxis overscanMode;        // Axis for overscan
    62 
    63     bool doNonLin;                      // Non-linearity correction
    64     psDataType nonLinearType;
    65     psMetadataItem *nonLinearData;
    66     void *nonLinearSource;
     56    bool doMask;                        // apply a pixel mask before stacking
     57    pmCombineParams *combineParams;
     58    bool applyZeroScale;
     59    double gain;
     60    double readnoise;
    6761} ppOptions;
    6862
    69 typedef struct {
    70     pmCell *input;
    71     pmCell *mask;
    72     pmCell *bias;
    73     pmCell *dark;
    74     pmCell *flat;
    75 } ppDetrend;
     63bool ppMergeConfig (ppConfig *config, int argc, char **argv);
     64bool ppMergeLoop (ppData *data, ppOptions *options, ppConfig *config);
     65bool ppMergeOptions (ppData *data, ppOptions *options, ppConfig *config);
     66bool ppMergeOutput (ppData *data, ppOptions *options, ppConfig *config);
     67bool ppMergeParseCamera (ppData *data, ppConfig *config);
     68bool ppMergeParseDetrend (ppData *data, ppOptions *options, ppConfig *config);
    7669
    77 bool ppImageConfig (ppConfig *config, int argc, char **argv);
    78 bool ppImageLoadPixels (ppFPA *input, ppFPA *process, psDB *db, int nChip, int nCell);
    79 bool ppImageLoop (ppData *data, ppOptions *options, ppConfig *config);
    80 bool ppImageOptions (ppData *data, ppOptions *options, ppConfig *config);
    81 bool ppImageParseCamera (ppData *data, ppConfig *config, char **argv);
    82 bool ppImageParseDetrend (ppData *data, ppOptions *options, ppConfig *config);
     70bool ppMergeCell (pmCell *output, pmCell *mask, psArray *cellList, ppOptions *options, ppConfig *config);
    8371
    84 bool ppReadoutWeights (pmReadout *readout);
    85 
    86 bool ppDetrendCell (ppDetrend *detrend, ppOptions *options, ppConfig *config);
    87 
    88 bool ppDetrendMask (pmCell *cell, pmReadout *input, pmReadout *mask);
    89 bool ppDetrendNonLinear (pmCell *cell, pmReadout *input, ppOptions *options);
    90 bool ppDetrendNonLinearLookup (pmReadout *input, psMetadataItem *dataItem);
    91 bool ppDetrendNonLinearPolynomial (pmReadout *input, psMetadataItem *dataItem);
    92 bool ppDetrendBias (pmCell *inputCell, pmReadout *inputReadout, pmReadout *pedestal, ppOptions *options);
    93 pmReadout* ppDetrendPedestal (pmReadout *pedestal, pmCell *input, pmReadout *bias, pmReadout *dark, float darkTime, ppOptions *options);
     72// XXX : these functions are identical to the ppImage equivalents
    9473pmReadout* ppDetrendSelectFirst (pmCell *cell, char *name, bool doThis);
    95 
    9674bool ppFPAOpen (ppFPA *fpa, psMetadata *camera, char *name, bool doThis);
     75bool ppMergeLoadPixels (ppFPA *input, ppFPA *process, psDB *db, int nChip, int nCell);
Note: See TracChangeset for help on using the changeset viewer.