Changeset 29604
- Timestamp:
- Oct 29, 2010, 10:55:53 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotSourceStats.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotSourceStats.c
r29548 r29604 140 140 141 141 if (setWindow) { 142 if (!psphotSetMomentsWindow(recipe, readout->analysis, sources )) {142 if (!psphotSetMomentsWindow(recipe, readout->analysis, sources, maskVal)) { 143 143 psError(PS_ERR_UNEXPECTED_NULL, false, "Failed to determine Moments Window!"); 144 144 psFree(detections->newSources); … … 288 288 289 289 // XXX how else could we get the window size in? 290 if (!psphotSetMomentsWindow(recipe, readout->analysis, sources )) {290 if (!psphotSetMomentsWindow(recipe, readout->analysis, sources, 0)) { 291 291 psError(PS_ERR_UNEXPECTED_NULL, false, "Failed to determine Moments Window!"); 292 292 return NULL; … … 469 469 // this function attempts to iteratively determine the best value for sigma of the moments weighting Gaussian 470 470 // this function modifies the recipe values MOMENTS_SX_MAX, MOMENTS_SY_MAX, and PSF_CLUMP_GRID_SCALE, used by pmSourcePSFClump 471 bool psphotSetMomentsWindow (psMetadata *recipe, psMetadata *analysis, psArray *sources ) {471 bool psphotSetMomentsWindow (psMetadata *recipe, psMetadata *analysis, psArray *sources, psImageMaskType maskVal) { 472 472 473 473 bool status; … … 501 501 502 502 // measure basic source moments (no S/N clipping on input pixels) 503 status = pmSourceMoments (source, 4*sigma[i], sigma[i], 0.0, 0xffff);503 status = pmSourceMoments (source, 4*sigma[i], sigma[i], 0.0, maskVal); 504 504 } 505 505
Note:
See TracChangeset
for help on using the changeset viewer.
