Changeset 13374
- Timestamp:
- May 14, 2007, 3:55:17 AM (19 years ago)
- Location:
- trunk/psphot/src
- Files:
-
- 3 edited
-
psphot.h (modified) (1 diff)
-
psphotReadout.c (modified) (2 diffs)
-
psphotRoughClass.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphot.h
r13348 r13374 33 33 const psMetadata *recipe, psArray *footprints); 34 34 psArray *psphotSourceStats (pmReadout *readout, psMetadata *recipe, psArray *allpeaks); 35 bool psphotRoughClass (psArray *sources, psMetadata *recipe );35 bool psphotRoughClass (psArray *sources, psMetadata *recipe, const bool findPsfClump); 36 36 bool psphotBasicDeblend (psArray *sources, psMetadata *recipe); 37 37 pmPSF *psphotChoosePSF (pmReadout *readout, psArray *sources, psMetadata *recipe); -
trunk/psphot/src/psphotReadout.c
r13353 r13374 104 104 105 105 // classify sources based on moments, brightness 106 if (!psphotRoughClass (sources, recipe )) {106 if (!psphotRoughClass (sources, recipe, true)) { 107 107 psLogMsg ("psphot", 3, "failed to find a valid PSF clump for image"); 108 108 return psphotReadoutCleanup (config, readout, recipe, NULL, sources); … … 201 201 202 202 // set source type 203 psphotRoughClass (newSources, recipe );203 psphotRoughClass (newSources, recipe, false); 204 204 205 205 // create full input models -
trunk/psphot/src/psphotRoughClass.c
r12792 r13374 2 2 3 3 // 2006.02.02 : no leaks 4 bool psphotRoughClass (psArray *sources, psMetadata *recipe ) {4 bool psphotRoughClass (psArray *sources, psMetadata *recipe, const bool findPsfClump) { 5 5 6 pmPSFClump psfClump; 6 static pmPSFClump psfClump; 7 static bool havePsfClump = false; 7 8 8 9 psTimerStart ("psphot"); 9 10 10 psfClump = pmSourcePSFClump (sources, recipe); 11 if (findPsfClump) { 12 psfClump = pmSourcePSFClump (sources, recipe); 13 } else if (!havePsfClump) { 14 psError(PSPHOT_ERR_PROG, false, "You must find the PSF clump before reusing it"); 15 } else { 16 ; 17 } 18 19 havePsfClump = false; // we don't know if it's valid 11 20 if (psfClump.X < 0) { 12 21 psError(PSPHOT_ERR_PROG, false, "programming error calling pmSourcePSFClump"); … … 31 40 psLogMsg ("psphot.roughclass", PS_LOG_INFO, "rough classification: %f sec\n", psTimerMark ("psphot")); 32 41 42 havePsfClump = true; // we have set psfClump 43 33 44 return true; 34 45 }
Note:
See TracChangeset
for help on using the changeset viewer.
