Changeset 19906 for trunk/psModules/src/objects/pmSource.c
- Timestamp:
- Oct 6, 2008, 3:05:13 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSource.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSource.c
r19879 r19906 6 6 * @author EAM, IfA: significant modifications. 7 7 * 8 * @version $Revision: 1.5 7$ $Name: not supported by cvs2svn $9 * @date $Date: 2008-10-0 3 20:59:16$8 * @version $Revision: 1.58 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2008-10-06 13:05:13 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 274 274 // XXX this function should probably accept the values, not a recipe. wrap with a 275 275 // psphot-specific function which applies the recipe values 276 pmPSFClump pmSourcePSFClump(psArray *sources, psMetadata *recipe) 276 // only apply selection to sources within specified region 277 pmPSFClump pmSourcePSFClump(psRegion *region, psArray *sources, psMetadata *recipe) 277 278 { 278 279 psTrace("psModules.objects", 5, "---- begin ----\n"); … … 329 330 continue; 330 331 332 if (tmpSrc->peak->x < region->x0) continue; 333 if (tmpSrc->peak->x > region->x1) continue; 334 if (tmpSrc->peak->y < region->y0) continue; 335 if (tmpSrc->peak->y > region->y1) continue; 336 331 337 // Sx,Sy are limited at 0. a peak at 0,0 is artificial 332 338 if (fabs(tmpSrc->moments->Mxx) < 0.05) … … 427 433 continue; 428 434 435 if (tmpSrc->peak->x < region->x0) continue; 436 if (tmpSrc->peak->x > region->x1) continue; 437 if (tmpSrc->peak->y < region->y0) continue; 438 if (tmpSrc->peak->y > region->y1) continue; 439 429 440 if (tmpSrc->moments->Mxx < minSx) 430 441 continue; … … 475 486 *****************************************************************************/ 476 487 477 bool pmSourceRoughClass(ps Array *sources, psMetadata *recipe, pmPSFClump clump, psMaskType maskSat)488 bool pmSourceRoughClass(psRegion *region, psArray *sources, psMetadata *recipe, pmPSFClump clump, psMaskType maskSat) 478 489 { 479 490 psTrace("psModules.objects", 5, "---- begin ----"); … … 509 520 510 521 pmSource *source = (pmSource *) sources->data[i]; 522 523 if (source->peak->x < region->x0) continue; 524 if (source->peak->x > region->x1) continue; 525 if (source->peak->y < region->y0) continue; 526 if (source->peak->y > region->y1) continue; 511 527 512 528 source->peak->type = 0;
Note:
See TracChangeset
for help on using the changeset viewer.
