Changeset 27531 for trunk/psModules/src/objects/pmSourceMoments.c
- Timestamp:
- Mar 30, 2010, 1:29:50 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSourceMoments.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSourceMoments.c
r26893 r27531 163 163 } 164 164 165 // if we have less than (1/2) of the possible pixels, force a retry 165 // if we have less than (1/4) of the possible pixels (in circle or box), force a retry 166 int minPixels = PS_MIN(0.75*R2, source->pixels->numCols*source->pixels->numRows/4.0); 167 166 168 // XXX EAM - the limit is a bit arbitrary. make it user defined? 167 if ((numPixels < 0.75*R2) || (Sum <= 0)) {168 psTrace ("psModules.objects", 3, "insufficient valid pixels (%d vs %d; %f) for source\n", numPixels, (int)(0.75*R2), Sum);169 if ((numPixels < minPixels) || (Sum <= 0)) { 170 psTrace ("psModules.objects", 3, "insufficient valid pixels (%d vs %d; %f) for source\n", numPixels, minPixels, Sum); 169 171 return (false); 170 172 }
Note:
See TracChangeset
for help on using the changeset viewer.
