IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 2, 2007, 10:35:53 AM (19 years ago)
Author:
eugene
Message:

reorg to make consistent with other programs: ppStats is the program, ppStatsFPA is the library call; ppStats.h contains everything, ppStatsInternal.h is used by the ppStats functions

File:
1 edited

Legend:

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

    r13923 r13993  
     1
    12#ifndef PP_STATS_H
    23#define PP_STATS_H
     
    45#define PPSTATS_RECIPE "PPSTATS"
    56
    6 #include <psmodules.h>
     7typedef struct {
     8    // Inputs
     9    psFits *fits;                       // Input file handle
     10    pmFPA *fpa;                         // FPA to analyse
     11    pmFPAview *view;                    // View to analyse
     12    // Stuff to output
     13    psStats *stats;                     // Statistics to calculate
     14    bool doStats;                       // Do statistics?
     15    bool fileLevel;                     // Output file level?
     16    psList *headers;                    // Headers to read
     17    psList *concepts;                   // Concepts to read
     18    psList *summary;                    // Summary statistics to calculate
     19    // Options for input data
     20    float sample;                       // Fraction of cell to sample for statistics
     21    psMaskType maskVal;                 // Mask value for images
     22    psList *chips;                      // Chips to look at
     23    psList *cells;                      // Cells to look at
     24} ppStatsData;
    725
    8 #include "ppStatsData.h"
    9 #include "ppStatsSetupFromRecipe.h"
    10 #include "ppStatsLoop.h"
    11 #include "ppStatsVersion.h"
    12 #include "ppStatsFringe.h"
     26// Allocator
     27ppStatsData *ppStatsDataAlloc(void);
    1328
    14 // Perform the ppStats steps
    15 psMetadata *ppStats(psMetadata *out,
    16                     pmFPA *fpa,         // FPA for which to get statistics
    17                     pmFPAview *view,    // View for analysis
    18                     psMaskType maskVal, // Value to mask
    19                     pmConfig *config    // Configuration
     29/// Perform the ppStats steps on the given FPA (optionally for specified view)
     30psMetadata *ppStatsFPA(psMetadata *out,
     31                       pmFPA *fpa,         // FPA for which to get statistics
     32                       pmFPAview *view,    // View for analysis
     33                       psMaskType maskVal, // Value to mask
     34                       pmConfig *config    // Configuration
    2035    );
    2136
     37/// Supplement the statistics with the fringe solution
     38bool ppStatsFringe(psMetadata *stats,     ///< Statistics metadata to supplement
     39                   const pmChip *chip,    ///< The chip containing the solution
     40                   const char *root,      ///< Name of output entry
     41                   const char *fringeName ///< Name of the solution in the chip->analysis
     42    );
     43
     44
     45/// Loop over the input image and do all the hard work
     46psMetadata *ppStatsLoop(psExit *result,
     47                        ppStatsData *data, // The data
     48                        const pmConfig *config // Configuration
     49    );
     50
     51/// Set up the options and input/output files
     52ppStatsData *ppStatsSetupFromArgs(int *argc, char *argv[], // Command-line arguments
     53                                  pmConfig *config // Configuration
     54    );
     55
     56bool ppStatsSetupFromRecipe(ppStatsData *data, // Data for running ppStats
     57                            pmConfig *config // Configuration
     58    );
     59
     60
     61/// Return short version information
     62psString ppStatsVersion(void);
     63
     64/// Return long version information
     65psString ppStatsVersionLong(void);
     66
    2267#endif
Note: See TracChangeset for help on using the changeset viewer.