IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15815


Ignore:
Timestamp:
Dec 13, 2007, 12:14:46 PM (18 years ago)
Author:
Paul Price
Message:

This works with the current version of ppStack.

Location:
trunk/psModules/src/camera
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmReadoutFake.c

    r15813 r15815  
    4747#endif
    4848
    49 bool pmReadoutFakeFromSources(
    50 #ifdef PAP_WORK
    51     pmReadout *readout, int numCols, int numRows, const psArray *sources,
    52     const psVector *xOffset, const psVector *yOffset, pmPSF *psf,
    53     float minFlux, int radius, bool circularise
    54 #else
    55     pmReadout *readout, int numCols, int numRows, const psArray *sources,
    56     float fwhm, float minFlux
    57 #endif
    58     )
     49#ifdef PAP_WORK
     50bool pmReadoutFakeFromSources(pmReadout *readout, int numCols, int numRows, const psArray *sources,
     51                              const psVector *xOffset, const psVector *yOffset, pmPSF *psf,
     52                              float minFlux, int radius, bool circularise)
     53#else
     54pmReadout *pmReadoutFakeFromSources(int numCols, int numRows, const psArray *sources,
     55                                    float fwhm, float minFlux)
     56#endif
    5957{
     58#ifdef PAP_WORK
    6059    PS_ASSERT_PTR_NON_NULL(readout, false);
     60#else
     61    pmReadout *readout = pmReadoutAlloc(NULL);
     62#endif
    6163    PS_ASSERT_INT_LARGER_THAN(numCols, 0, false);
    6264    PS_ASSERT_INT_LARGER_THAN(numRows, 0, false);
     
    213215    }
    214216
    215     return true;
     217    return
     218#ifdef PAP_WORK
     219        true
     220#else
     221        readout
     222#endif
     223        ;
     224
    216225}
  • trunk/psModules/src/camera/pmReadoutFake.h

    r15813 r15815  
    2929    );
    3030#else
    31 bool pmReadoutFakeFromSources(pmReadout *readout, ///< Output readout, or NULL
    32                               int numCols, int numRows, ///< Dimension of image
    33                               const psArray *sources, ///< Array of pmSource
    34                               float target, ///< Target FWHM
    35                               float minFlux ///< Minimum flux to bother about; for setting source radius
     31pmReadout *pmReadoutFakeFromSources(int numCols, int numRows, ///< Dimension of image
     32                                    const psArray *sources, ///< Array of pmSource
     33                                    float target, ///< Target FWHM
     34                                    float minFlux ///< Minimum flux to bother about; for setting source radius
    3635    );
    3736#endif // PAP_WORK
Note: See TracChangeset for help on using the changeset viewer.