IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 10, 2009, 11:15:20 AM (17 years ago)
Author:
Paul Price
Message:

Nigel Metcalfe points out that we shouldn't use extended sources as stamps when convolving to a target PSF. To avoid this, I'm throwing out extended sources when I create the fake image. This requires an API change to pmReadoutFake(). I think I've caught all instances that use that.

File:
1 edited

Legend:

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

    r25299 r25313  
    2828#define MODEL_TYPE "PS_MODEL_RGAUSS"    // Type of model to use
    2929#define MAX_AXIS_RATIO 20.0             // Maximum axis ratio for PSF model
    30 #define SOURCE_MASK (PM_SOURCE_MODE_DEFECT | PM_SOURCE_MODE_CR_LIMIT) // Mask to apply to input sources
    3130#define MODEL_MASK (PM_MODEL_STATUS_NONCONVERGE | PM_MODEL_STATUS_OFFIMAGE | \
    3231                    PM_MODEL_STATUS_BADARGS | PM_MODEL_STATUS_LIMITS) // Mask to apply to models
     
    162161
    163162bool pmReadoutFakeFromSources(pmReadout *readout, int numCols, int numRows, const psArray *sources,
    164                               const psVector *xOffset, const psVector *yOffset, const pmPSF *psf,
    165                               float minFlux, int radius, bool circularise, bool normalisePeak)
     163                              pmSourceMode sourceMask, const psVector *xOffset, const psVector *yOffset,
     164                              const pmPSF *psf, float minFlux, int radius,
     165                              bool circularise, bool normalisePeak)
    166166{
    167167    PS_ASSERT_ARRAY_NON_NULL(sources, false);
     
    178178            continue;
    179179        }
    180         if (source->mode & SOURCE_MASK) {
     180        if (source->mode & sourceMask) {
    181181            continue;
    182182        }
Note: See TracChangeset for help on using the changeset viewer.