Changeset 25313 for trunk/psModules
- Timestamp:
- Sep 10, 2009, 11:15:20 AM (17 years ago)
- Location:
- trunk/psModules/src
- Files:
-
- 3 edited
-
camera/pmReadoutFake.c (modified) (3 diffs)
-
camera/pmReadoutFake.h (modified) (2 diffs)
-
imcombine/pmPSFEnvelope.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmReadoutFake.c
r25299 r25313 28 28 #define MODEL_TYPE "PS_MODEL_RGAUSS" // Type of model to use 29 29 #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 sources31 30 #define MODEL_MASK (PM_MODEL_STATUS_NONCONVERGE | PM_MODEL_STATUS_OFFIMAGE | \ 32 31 PM_MODEL_STATUS_BADARGS | PM_MODEL_STATUS_LIMITS) // Mask to apply to models … … 162 161 163 162 bool 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) 166 166 { 167 167 PS_ASSERT_ARRAY_NON_NULL(sources, false); … … 178 178 continue; 179 179 } 180 if (source->mode & SOURCE_MASK) {180 if (source->mode & sourceMask) { 181 181 continue; 182 182 } -
trunk/psModules/src/camera/pmReadoutFake.h
r20999 r25313 11 11 #include <pmTrend2D.h> 12 12 #include <pmPSF.h> 13 #include <pmSourceMasks.h> 13 14 14 15 /// Generate a fake readout from an array of sources … … 16 17 int numCols, int numRows, ///< Dimension of image 17 18 const psArray *sources, ///< Array of pmSource 19 pmSourceMode sourceMask, ///< Mask for sources 18 20 const psVector *xOffset, ///< x offsets for sources (source -> img), or NULL 19 21 const psVector *yOffset, ///< y offsets for sources (source -> img), or NULL -
trunk/psModules/src/imcombine/pmPSFEnvelope.c
r24622 r25313 124 124 pmResiduals *resid = psf->residuals;// PSF residuals 125 125 psf->residuals = NULL; 126 if (!pmReadoutFakeFromSources(fakeRO, fakeSize, fakeSize, fakes, xOffset, yOffset, psf,126 if (!pmReadoutFakeFromSources(fakeRO, fakeSize, fakeSize, fakes, 0, xOffset, yOffset, psf, 127 127 NAN, radius, true, true)) { 128 128 psError(PS_ERR_UNKNOWN, false, "Unable to generate fake readout."); … … 298 298 } 299 299 300 // measure the source moments: tophat windowing, no pixel S/N cutoff300 // measure the source moments: tophat windowing, no pixel S/N cutoff 301 301 if (!pmSourceMoments(source, maxRadius, 0.0, 1.0)) { 302 302 // Can't do anything about it; limp along as best we can
Note:
See TracChangeset
for help on using the changeset viewer.
