IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 962


Ignore:
Timestamp:
Jun 9, 2004, 12:29:40 PM (22 years ago)
Author:
Paul Price
Message:

Fixing up subtractSky

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/modules/include/phase2.h

    r926 r962  
    3030
    3131/** Returns an image that is the result of convolving the input image with the specified kernel. */
    32 psReadout *psPhase2ConvolveWithKernel(psReadout *out, ///< Output image, or NULL
    33                                       const psReadout *in, ///< Input image to be convolved
    34                                       const psImage *kernel ///< Kernel by which to convolve
    35                                       );
     32psImage *psPhase2ConvolveWithKernel(psImage *out, ///< Output image, or NULL
     33                                    const psImage *in, ///< Input image to be convolved
     34                                    const psImage *kernel ///< Kernel by which to convolve
     35                                    );
    3636
    3737/************************************************************************************************************/
     
    5555                       );
    5656
    57 /** Array of image regions */
    58 typedef struct {
    59     int n;                              ///< Number of image regions
    60     psImageRegion *arr;                 ///< Array of image regions
    61 } psImageRegionArray;
    62 
    63 /** Constructor */
    64 psImageRegionArray *psImageRegionArrayAlloc(int n ///< Number of entries to allocate
    65                                             );
    66 
    67 /** Destructor */
    68 void psImageRegionArrayFree(psImageRegionArray *reg ///< Array of regions to destroy
    69                             );
    70 
    7157/** Overscan axis */
    7258typedef enum {
     
    8268                                psPolynomial1D *polySpec, ///< Polynomial specification to use for fit,
    8369                                                          ///< outputed
    84                                 const psImageRegionArray *regions, ///< Bias regions
     70                                const psList *regions, ///< Linked list of psImageRegion types.
    8571                                psOverscanAxis overscanAxis, ///< Overscan axis
    8672                                const psStatsOptions *stat, ///< Statistic to use
     
    10288 */
    10389psReadout *psPhase2CorrectNonLinearity(psReadout *in, ///< Input image to be corrected, and output
    104                                        psPolynomial1D *coeff ///< Polynomial with which to correct
     90                                       const psPolynomial1D *coeff ///< Polynomial with which to correct
    10591                                       );
    10692
     
    11096                             );
    11197
    112 /** Subtracts the sky background. Needs work. */
     98/** Subtracts the sky background. */
    11399psReadout *psPhase2SubtractSky(psReadout *in, ///< Input image to be sky-subtracted, and output
    114100                               psPolynomial2D *poly, ///< Polynomial specification, returns coeffcients
    115                                const psImageArray *skyImages ///< Array of sky images
     101                               psVector *outNorms, ///< Normalisations of the template sky images: output
     102                               const psList *skyImages, ///< Template sky images: a list of type psImage, or
     103                                                        ///< NULL
     104                               const psList *catalog, ///< Sources nearby to mask when measuring the
     105                                                      ///< background: a list of type psObject, or NULL
     106                               float radiusMultiply, ///< Multiplying factor of object radius for mask
     107                               float radiusAdd, ///< Additive factor to grow the object masks
     108                               int binFactor ///< Binning factor to use on image before solving for polynomial
    116109                               );
    117110
     
    150143
    151144/** Find and measure objects on the input image.  Fills in the "objects" member of the psReadout */
    152 psReadout *psPhase2GetObjects(psReadout *in, ///< Input image on which to find objects, and output
    153                               const psImage *psf, ///< PSF to use to find objects
    154                               const psVector *levels ///< Threshold levels (std dev.s)
    155                               );
     145psReadout *psPhase2FindObjects(psReadout *in, ///< Input image on which to find objects, and output
     146                               const psImage *psf, ///< PSF to use to find objects
     147                               const psVector *levels ///< Threshold levels (std dev.s)
     148                               );
    156149
    157150/************************************************************************************************************/
Note: See TracChangeset for help on using the changeset viewer.