IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3610 for trunk/stac/src/stac.h


Ignore:
Timestamp:
Mar 31, 2005, 5:07:12 PM (21 years ago)
Author:
Paul Price
Message:

Working very nicely now.

File:
1 edited

Legend:

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

    r2897 r3610  
    88#define MAXCHAR 80
    99
    10 // Temporary implementation
    11 psPlaneTransform *psPlaneTransformAlloc(psS32 n1, psS32 n2);
     10// Get the current time
     11double getTime(void);
    1212
    1313/************************************************************************************************************/
     
    2121    psArray *inputs;                    // Input file names
    2222    const char *output;                 // Output file name
     23    bool saveShifts;                    // Save shifted images?
     24    const char *starFile;               // File with star coordinates
     25    const char *starMapFile;            // File with map for stars
    2326    int outnx, outny;                   // Size of output image
    2427    float xOffset, yOffset;             // Offset to get lower-left corner at 0,0
    25     float saturated;                    // Saturation level
    26     float bad;                          // Bad level
     28    psVector *saturated;                // Saturation level for each image
     29    psVector *bad;                      // Bad level for each image
    2730    float reject;                       // Rejection level
    2831    float frac;                         // Fraction of input pixel that must be masked before the pixel is
     
    3033    float grad;                         // Multiplier of the gradient
    3134    int nReject;                        // Number of rejection iterations
     35    float xMapDiff, yMapDiff;           // Difference between pure map and output image coordinates
     36    float aper;                         // Aperture size (pixels)
    3237} stacConfig;
    3338
     
    5257// Read the input files and return an array of images
    5358psArray *stacReadImages(stacConfig *config);
     59
     60// Read a file of coordinates (x,y)
     61psArray *stacReadCoords(const char *filename);
     62
     63// Read a single map file and return the transformation
     64psPlaneTransform *stacReadMap(const char *filename);
    5465
    5566// Read the map files and return an array of transformations
     
    7788                   const psArray *masks, // Masks of input images
    7889                   const psImage *region, // Region of interest for transformation
     90                   const psVector *scales, // Relative scales
     91                   const psVector *offsets, // Relative offsets
    7992                   const stacConfig *config // Configuration
    8093    );
     
    181194/************************************************************************************************************/
    182195
     196// stacScale.c
     197
     198// Calculate the background in an image
     199float stacBackground(const psImage *image, // Image for which to get the background
     200                     int sample         // Sample in increments of this value
     201    );
     202
     203
     204// Calculate the relative scales and offsets between the images
     205bool stacScales(psVector **scalesPtr,   // Scales to return
     206                psVector **offsetsPtr,  // Offsets to return
     207                const psArray *images,  // Images on which to measure the scales and offsets
     208                const stacConfig *config // Configuration
     209    );
     210
     211// Rescale images
     212bool stacRescale(psArray *images,       // Images to rescale
     213                 psArray *errImages,    // Variance images to rescale
     214                 const psImage *mask,   // Mask indicating which pixels to scale
     215                 const psVector *scales,// Scales for images
     216                 const psVector *offsets // Offsets for images
     217    );
     218
    183219#endif
Note: See TracChangeset for help on using the changeset viewer.