Changeset 32619
- Timestamp:
- Nov 6, 2011, 2:43:27 PM (15 years ago)
- Location:
- branches/eam_branches/ipp-20110906/psphot/src
- Files:
-
- 5 edited
-
psphotFitSourcesLinear.c (modified) (1 diff)
-
psphotGuessModels.c (modified) (1 diff)
-
psphotSourceFits.c (modified) (1 diff)
-
psphotSourceMatch.c (modified) (1 diff)
-
psphotSourceStats.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110906/psphot/src/psphotFitSourcesLinear.c
r32348 r32619 134 134 for (int i = 0; i < sources->n; i++) { 135 135 pmSource *source = sources->data[i]; 136 137 // psAssert (source->peak, "source without peak??"); 138 // psAssert (source->peak->footprint, "peak without footprint??"); 136 139 137 140 // turn this bit off and turn it on again if we pass this test -
branches/eam_branches/ipp-20110906/psphot/src/psphotGuessModels.c
r32348 r32619 170 170 if (!source->peak) continue; 171 171 172 // psAssert (source->peak->footprint, "peak without footprint??"); 173 172 174 nSrc ++; 173 175 -
branches/eam_branches/ipp-20110906/psphot/src/psphotSourceFits.c
r32348 r32619 357 357 pmSource *newSrc = pmSourceCopy (source); 358 358 newSrc->modelPSF = psMemIncrRefCounter (DBL->data[1]); 359 newSrc->peak->footprint = source->peak->footprint; // just a reference; the peak does not own the footprint 360 psArrayAdd(newSrc->peak->footprint->peaks, 1, newSrc->peak); // the footprint owns the peak 359 361 360 362 // build cached models and subtract -
branches/eam_branches/ipp-20110906/psphot/src/psphotSourceMatch.c
r32348 r32619 234 234 235 235 // assign to a footprint on this readout->image 236 peak->footprint = pmFootprintCopyData(footprint, readout->image); 237 238 // the peak does not claim ownership of the footprint (it does not free it). save a copy of this 239 // footprint on detections->footprints so we can free it later 240 psArrayAdd(detections->footprints, 100, peak->footprint); 241 psFree (peak->footprint); 236 if (footprint) { 237 peak->footprint = pmFootprintCopyData(footprint, readout->image); 238 239 // the peak does not claim ownership of the footprint (it does not free it). save a copy of this 240 // footprint on detections->footprints so we can free it later 241 psArrayAdd(detections->footprints, 100, peak->footprint); 242 psFree (peak->footprint); 243 } 242 244 243 245 // create a new source -
branches/eam_branches/ipp-20110906/psphot/src/psphotSourceStats.c
r32348 r32619 124 124 // add the peak 125 125 source->peak = psMemIncrRefCounter(peak); 126 127 // psAssert (source->peak->footprint, "peak without footprint??"); 126 128 127 129 // allocate space for moments
Note:
See TracChangeset
for help on using the changeset viewer.
