IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 7, 2009, 4:35:14 PM (17 years ago)
Author:
Paul Price
Message:

Adding pmReadoutFakeFromVectors, and altering pmReadoutFakeFromSources to use it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/psModules/src/camera/pmReadoutFake.h

    r20999 r25028  
    1212#include <pmPSF.h>
    1313
     14/// Generate a fake readout from vectors of position and magnitude
     15bool pmReadoutFakeFromVectors(
     16    pmReadout *readout,                   ///< Output readout, or NULL
     17    int numCols, int numRows,             ///< Dimension of image
     18    const psVector *x, const psVector *y, ///< Coordinates of sources
     19    const psVector *mag,                  ///< Magnitudes of sources
     20    const psVector *xOffset,              ///< x offsets for sources (source -> img), or NULL
     21    const psVector *yOffset,              ///< y offsets for sources (source -> img), or NULL
     22    const pmPSF *psf,                     ///< PSF for sources
     23    float minFlux,                        ///< Minimum flux to bother about; for setting source radius
     24    int radius,                           ///< Fixed radius for sources
     25    bool circularise,                     ///< Circularise PSF model?
     26    bool normalise                        ///< Normalise the peak value?
     27    );
     28
     29
    1430/// Generate a fake readout from an array of sources
    15 bool pmReadoutFakeFromSources(pmReadout *readout, ///< Output readout, or NULL
    16                               int numCols, int numRows, ///< Dimension of image
    17                               const psArray *sources, ///< Array of pmSource
    18                               const psVector *xOffset, ///< x offsets for sources (source -> img), or NULL
    19                               const psVector *yOffset, ///< y offsets for sources (source -> img), or NULL
    20                               const pmPSF *psf, ///< PSF for sources
    21                               float minFlux, ///< Minimum flux to bother about; for setting source radius
    22                               int radius, ///< Fixed radius for sources
    23                               bool circularise, ///< Circularise PSF model?
    24                               bool normalise ///< Normalise the peak value?
     31bool pmReadoutFakeFromSources(
     32    pmReadout *readout,                 ///< Output readout, or NULL
     33    int numCols, int numRows,           ///< Dimension of image
     34    const psArray *sources,             ///< Array of pmSource
     35    const psVector *xOffset,            ///< x offsets for sources (source -> img), or NULL
     36    const psVector *yOffset,            ///< y offsets for sources (source -> img), or NULL
     37    const pmPSF *psf,                   ///< PSF for sources
     38    float minFlux,                      ///< Minimum flux to bother about; for setting source radius
     39    int radius,                         ///< Fixed radius for sources
     40    bool circularise,                   ///< Circularise PSF model?
     41    bool normalise                      ///< Normalise the peak value?
    2542    );
    2643
Note: See TracChangeset for help on using the changeset viewer.