IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 5717 for trunk/pois/src/pois.h


Ignore:
Timestamp:
Dec 6, 2005, 6:43:52 PM (21 years ago)
Author:
Paul Price
Message:

Importing current working PAP version (many bug fixes since this branch) straight on top of this version, and tidying up a bit

File:
1 edited

Legend:

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

    r3813 r5717  
    33
    44#include "pslib.h"
    5 #include "poisErrorCodes.h"
    65
    76#define abs(x) ((x) >= 0 ? (x) : (-(x)))
     
    2120    int nsx, nsy;                       // Number of stamps in x and y
    2221    float refSat, inSat;                // Saturation values for reference and input images
    23     float bad;                          // Value below which pixels are bad
     22    float refBad, inBad;                // Bad values for reference and input images
    2423    float background;                   // Value to add to the background in images to get above zero
    2524    int spatialOrder;                   // Order of spatial variations in the kernel
     
    2726    float sigmaRej;                     // Limit (in std dev) for rejection
    2827    float penalty;                      // Penalty value
     28    char *stampFile;                    // Filename for file with stamps
     29    bool reverse;                       // Reverse the subtraction?
     30    bool mask;                          // Output the mask?
    2931} poisConfig;
    3032
     
    6466void poisStampFree(poisStamp *stamp);
    6567
     68// Return true if the stamp is OK
     69bool poisCheckStamp(const psImage *image, // Image to check for threshold
     70                    const psImage *mask, // Mask to check for bad pixels
     71                    int x, int y,       // Pixel coordinates
     72                    const poisConfig *config // Configuration
     73    );
     74
    6675/************************************************************************************************************/
    6776
     
    7887
    7988// Print usage information
    80 //void help(void);
     89void help(void);
    8190
    8291// Parse the command line arguments
    83 poisConfig *restrict poisConfigAlloc(void);
    84 
    8592poisConfig *poisParseConfig(int argc,   // Number of command-line arguments
    8693                            char **argv // Command-line arguments
     
    111118
    112119// Find stamps
    113 psArray *poisFindStamps(psArray *stampsIO, // Existing list of stamps, or NULL
     120psArray *poisFindStamps(psArray *stamps, // Existing list of stamps, or NULL
    114121                        const psImage *image, // Image for which to find stamps
    115122                        const psImage *mask, // Mask image
     
    158165
    159166// Calculate deviations from the best fit for the stamps
    160 psVector *poisCalculateDeviations(psVector *deviationsIO, // Output array of deviations, or NULL
     167psVector *poisCalculateDeviations(psVector *deviations, // Output array of deviations, or NULL
    161168                                  psArray *stamps, // Array of stamps
    162169                                  psImage *refImage, // Reference image
     
    173180
    174181// Reject stamps, based on the deviations
    175 psList *restrict poisRejectStamps(psArray *stamps,      // Array of stamps
    176                                   psImage *mask,        // Mask image
    177                                   const psVector *deviations, // Vector of deviations for the stamps
    178                                   const poisConfig *config // Configuration
     182bool poisRejectStamps(psArray *stamps,  // Array of stamps
     183                      psImage *mask,    // Mask image
     184                      const psVector *deviations, // Vector of deviations for the stamps
     185                      const poisConfig *config // Configuration
    179186    );
    180187
     
    184191
    185192// Solve the matrix equation
    186 psVector *poisSolveEquation(psVector *solutionIO,       // Solution vector, or NULL
     193psVector *poisSolveEquation(psVector *solution, // Solution vector, or NULL
    187194                            const psArray *stamps, // Array of stamps
    188195                            const poisConfig *config
     
    203210/************************************************************************************************************/
    204211
    205 psImage *poisImageSetVal(psImage *restrict IO,       // Input image
    206                          const psC64 val             // set to this value
    207     );
    208 
    209 psImage *poisImageSetValInMask(psImage *IO,                     // Image to update, or NULL
    210                                const psImage *restrict in,      // Input image
    211                                const psImage *mask,             // mask for image
    212                                const psC64 val,                 // set to this value
    213                                const unsigned long bits         // set pixels where mask & bits != 0
    214     );
     212// poisReadStamps.c
     213
     214// Read stamps from a file
     215psArray *poisReadStamps(psArray *stamps,// Stamps
     216                        FILE **stampFP, // File pointer for stamps file
     217                        const psImage *image, // Image for which to find stamps
     218                        const psImage *mask, // Mask image
     219                        const poisConfig *config // Configuration
     220    );
     221
     222/************************************************************************************************************/
     223
     224// poisCheckKernel.c
     225
     226// Check kernel for power at large radii
     227bool poisCheckKernel(const psVector *solution,// Kernel solution
     228                     const psArray *kernels, // Kernel basis functions
     229                     const poisConfig *config // Configuration
     230    );
     231
     232/************************************************************************************************************/
    215233
    216234#endif
Note: See TracChangeset for help on using the changeset viewer.