Changeset 13375
- Timestamp:
- May 14, 2007, 11:00:36 AM (19 years ago)
- Location:
- trunk/psphot/src
- Files:
-
- 2 edited
-
psphotFitSourcesLinear.c (modified) (1 diff)
-
psphotReadout.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotFitSourcesLinear.c
r13035 r13375 55 55 if (source->type == PM_SOURCE_TYPE_DEFECT) continue; 56 56 if (source->type == PM_SOURCE_TYPE_SATURATED) continue; 57 if (source->type == PM_SOURCE_TYPE_STAR && 58 source->mode & PM_SOURCE_MODE_SATSTAR) continue; 57 59 if (final) { 58 60 if (source->mode & PM_SOURCE_MODE_SUBTRACTED) continue; -
trunk/psphot/src/psphotReadout.c
r13374 r13375 63 63 // find the peaks in the image 64 64 psArray *peaks; 65 psArray *footprints = NULL; 65 66 if (useFootprints) { 66 psArray *footprints = psphotFindPeaks (readout, recipe, useFootprints, 1);67 footprints = psphotFindPeaks (readout, recipe, useFootprints, 1); 67 68 int growRadius = psMetadataLookupS32(NULL, recipe, "FOOTPRINT_GROW_RADIUS"); 68 69 if (growRadius > 0) { … … 71 72 footprints = tmp; 72 73 } 74 psphotCullPeaks(readout->image, readout->weight, recipe, footprints); 73 75 74 76 peaks = pmFootprintArrayToPeaks(footprints); 75 psFree(footprints);76 77 } else { 77 78 peaks = psphotFindPeaks (readout, recipe, useFootprints, 1); … … 184 185 } 185 186 186 psphotCullPeaks(readout->image, readout->weight, recipe, newFootprints);187 188 newPeaks = pmFootprintArrayToPeaks(newFootprints);189 187 // merge in old peaks 188 const int includePeaks = 0x0 | 0x2; // i.e. just from newFootprints 189 psArray *mergedFootprints = pmMergeFootprintArrays(footprints, newFootprints, includePeaks); 190 psFree(footprints); 190 191 psFree(newFootprints); 192 193 psphotCullPeaks(readout->image, readout->weight, recipe, mergedFootprints); 194 195 newPeaks = pmFootprintArrayToPeaks(mergedFootprints); 196 197 psFree(mergedFootprints); 191 198 } else { 192 199 newPeaks = psphotFindPeaks(readout, recipe, useFootprints, 2);
Note:
See TracChangeset
for help on using the changeset viewer.
