Changeset 29531
- Timestamp:
- Oct 22, 2010, 5:08:47 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100823/psModules/src/imcombine/pmSubtractionStamps.c
r29449 r29531 790 790 psTrace("psModules.imcombine", 3, "Window total (2): %f, threshold: %f\n", sum2, (1.0 - stamps->normFrac) * sum2); 791 791 792 # if ( 0)792 # if (1) 793 793 // this block attempts to calculate the radius based on the first radial moment 794 bool done1 = false;795 bool done2 = false;796 double prior1 = 0.0;797 double prior2 = 0.0;794 double Sr1 = 0.0; 795 double Sr2 = 0.0; 796 double Sf1 = 0.0; 797 double Sf2 = 0.0; 798 798 for (int y = -size; y <= size; y++) { 799 799 for (int x = -size; x <= size; x++) { … … 809 809 float R2 = Sr2 / Sf2; 810 810 811 stamps->normWindow1 = 2.5*R1; 812 stamps->normWindow1 = 2.5*R2; 811 stamps->normWindow1 = 2.0*R1; 812 stamps->normWindow2 = 2.0*R2; 813 psLogMsg ("psModules.imcombine", PS_LOG_DETAIL, "Kron Radii: %f for 1, %f for 2\n", stamps->normWindow1, stamps->normWindow2); 814 813 815 # else 814 816 // XXX : this block attempts to calculate the radius by looking at the curve of growth (or something vaguely equivalent).
Note:
See TracChangeset
for help on using the changeset viewer.
