IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 15, 2007, 1:17:56 PM (19 years ago)
Author:
Paul Price
Message:

Adding function to set stamps based on a list of x,y positions (as opposed to find a set of stamps automatically). Adding another function to generate target stamps so that we can convolve to the target PSF.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmSubtractionStamps.h

    r14480 r14513  
    1717/// A stamp for image subtraction
    1818typedef struct {
    19     int x, y;                           ///< Position
     19    float x, y;                         ///< Position
    2020    float xNorm, yNorm;                 ///< Normalised position
    2121    psKernel *reference;                ///< Reference image postage stamp
     
    3030psArray *pmSubtractionFindStamps(psArray *stamps, ///< Output stamps, or NULL
    3131                                 const psImage *image, ///< Image for which to find stamps
    32                                  const psImage *mask, ///< Mask
    33                                  const psRegion *region, ///< Region in which to search for stamps
     32                                 const psImage *mask, ///< Mask, or NULL
     33                                 const psRegion *region, ///< Region in which to search for stamps, or NULL
    3434                                 float threshold, ///< Threshold for stamps in the image
    3535                                 float spacing ///< Rough spacing for stamps
     36    );
     37
     38/// Set stamps based on a list of x,y
     39psArray *pmSubtractionSetStamps(const psVector *x, ///< x coordinates for each stamp
     40                                const psVector *y, ///< y coordinates for each stamp
     41                                const psImage *mask, ///< Mask, or NULL
     42                                const psRegion *region ///< Region in which to search for stamps, or NULL
    3643    );
    3744
     
    4552    );
    4653
     54/// Generate target for stamps based on list
     55psArray *pmSubtractionGenerateStamps(const psVector *x, ///< x coordinates for each stamp
     56                                     const psVector *y, ///< y coordinates for each stamp
     57                                     const psVector *flux, ///< Flux for each stamp
     58                                     float sigma, ///< Gaussian width for each stamp
     59                                     int footprint, ///< Stamp footprint size
     60                                     const pmSubtractionKernels *kernels ///< Kernel basis functions
     61    );
     62
    4763#endif
Note: See TracChangeset for help on using the changeset viewer.