- Timestamp:
- Mar 16, 2011, 1:34:32 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110213/psphot/src/psphotGuessModels.c
r30867 r30932 182 182 // moments 183 183 184 # if (1) 185 bool useMoments = true; 186 # else 187 bool useMoments = false; 188 useMoments = (source->mode & PM_SOURCE_MODE_SATSTAR); // we only want to try if SATSTAR is set, but.. 189 # endif 190 191 float dX = source->moments->Mx - source->peak->xf; 192 float dY = source->moments->My - source->peak->yf; 193 float dR = hypot(dX, dY); 194 195 useMoments = useMoments && source->moments; // can't if there are no moments 196 useMoments = useMoments && source->moments->nPixels; // can't if the moments were not measured 197 useMoments = useMoments && !(source->mode & PM_SOURCE_MODE_MOMENTS_FAILURE); // can't if the moments failed... 198 useMoments = useMoments && ((dR < 1.5) || (source->mode & PM_SOURCE_MODE_SATSTAR)); 199 // only use the moments position if the moment-peak offset is small or the star is saturated 184 bool useMoments = pmSourcePositionUseMoments(source); 200 185 201 186 float Xo, Yo;
Note:
See TracChangeset
for help on using the changeset viewer.
