Changeset 31157 for trunk/ppSim/src/ppSimDetections.c
- Timestamp:
- Apr 4, 2011, 1:14:37 PM (15 years ago)
- Location:
- trunk/ppSim
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/ppSimDetections.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSim
- Property svn:ignore
-
old new 14 14 missing 15 15 test 16 a.out.dSYM
-
- Property svn:ignore
-
trunk/ppSim/src/ppSimDetections.c
r18011 r31157 1 1 # include "ppSim.h" 2 2 3 // XXX this function is not used 3 4 bool ppSimDetections (psImage *significance, psMetadata *recipe, psArray *sources) { 4 5 psAssert (sources, "programming error: ppSimDetections passed NULL sources"); … … 12 13 float SIGMA_SMTH = psMetadataLookupF32 (&status, recipe, "SIGMA_SMOOTH"); 13 14 psAssert (status, "SIGMA_SMOOTH missing: call psphotSignificanceImage first"); 14 float effArea = 4.0*M_PI*PS_SQR(SIGMA_SMTH);15 // float effArea = 4.0*M_PI*PS_SQR(SIGMA_SMTH); 15 16 16 17 int row0 = significance->row0; … … 23 24 psAssert (peak, "peak is not defined for the source"); 24 25 25 peak->value = significance->data.F32[peak->y-row0][peak->x-col0]; 26 peak->SN = sqrt(peak->value*effArea); 27 26 peak->detValue = significance->data.F32[peak->y-row0][peak->x-col0]; 28 27 } 29 28 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
