Changeset 18554 for trunk/psModules/src/objects/pmPSF.c
- Timestamp:
- Jul 15, 2008, 10:25:00 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmPSF.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmPSF.c
r15983 r18554 6 6 * @author EAM, IfA 7 7 * 8 * @version $Revision: 1.3 5$ $Name: not supported by cvs2svn $9 * @date $Date: 2008-0 1-02 20:41:55$8 * @version $Revision: 1.36 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2008-07-15 20:25:00 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 404 404 405 405 // we generate the growth curve for the center of the image with the specified psf model 406 bool pmGrowthCurveGenerate (pmReadout *readout, pmPSF *psf, bool ignore, psMaskType maskVal, psMaskType mark )406 bool pmGrowthCurveGenerate (pmReadout *readout, pmPSF *psf, bool ignore, psMaskType maskVal, psMaskType markVal) 407 407 { 408 408 PS_ASSERT_PTR_NON_NULL(readout, false); … … 416 416 // create template model 417 417 pmModel *modelRef = pmModelAlloc(psf->type); 418 419 // maskVal is used to test for rejected pixels, and must include markVal 420 maskVal |= markVal; 418 421 419 422 // use the center of the center pixel of the image … … 465 468 466 469 // mask the given aperture and measure the apMag 467 psImageKeepCircle (mask, xc, yc, radius, "OR", mark );470 psImageKeepCircle (mask, xc, yc, radius, "OR", markVal); 468 471 if (!pmSourcePhotometryAper (&apMag, model, image, mask, maskVal)) { 469 472 psError(PM_ERR_PHOTOM, false, "Measuring apMag for radius == %g", radius); … … 473 476 break; 474 477 } 475 476 // XXX since we re-mask on each pass, this could be dropped. 477 psImageKeepCircle (mask, xc, yc, radius, "AND", PS_NOT_U8(mark)); 478 psImageKeepCircle (mask, xc, yc, radius, "AND", PS_NOT_U8(markVal)); 478 479 479 480 // the 'ignore' mode is for testing
Note:
See TracChangeset
for help on using the changeset viewer.
