Changeset 13993 for trunk/ppStats/src/ppStats.h
- Timestamp:
- Jul 2, 2007, 10:35:53 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/ppStats/src/ppStats.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStats/src/ppStats.h
r13923 r13993 1 1 2 #ifndef PP_STATS_H 2 3 #define PP_STATS_H … … 4 5 #define PPSTATS_RECIPE "PPSTATS" 5 6 6 #include <psmodules.h> 7 typedef 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; 7 25 8 #include "ppStatsData.h" 9 #include "ppStatsSetupFromRecipe.h" 10 #include "ppStatsLoop.h" 11 #include "ppStatsVersion.h" 12 #include "ppStatsFringe.h" 26 // Allocator 27 ppStatsData *ppStatsDataAlloc(void); 13 28 14 // Perform the ppStats steps15 psMetadata *ppStats (psMetadata *out,16 pmFPA *fpa, // FPA for which to get statistics17 pmFPAview *view, // View for analysis18 psMaskType maskVal, // Value to mask19 pmConfig *config // Configuration29 /// Perform the ppStats steps on the given FPA (optionally for specified view) 30 psMetadata *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 20 35 ); 21 36 37 /// Supplement the statistics with the fringe solution 38 bool 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 46 psMetadata *ppStatsLoop(psExit *result, 47 ppStatsData *data, // The data 48 const pmConfig *config // Configuration 49 ); 50 51 /// Set up the options and input/output files 52 ppStatsData *ppStatsSetupFromArgs(int *argc, char *argv[], // Command-line arguments 53 pmConfig *config // Configuration 54 ); 55 56 bool ppStatsSetupFromRecipe(ppStatsData *data, // Data for running ppStats 57 pmConfig *config // Configuration 58 ); 59 60 61 /// Return short version information 62 psString ppStatsVersion(void); 63 64 /// Return long version information 65 psString ppStatsVersionLong(void); 66 22 67 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
