Changeset 35240
- Timestamp:
- Mar 5, 2013, 2:37:52 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
ppSub/src/ppSubMatchPSFs.c (modified) (1 diff)
-
psModules/src/objects/pmSourceMatch.c (modified) (1 diff)
-
psModules/src/objects/pmSourceMatch.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubMatchPSFs.c
r34089 r35240 262 262 lists->data[0] = psMemIncrRefCounter(inSources); 263 263 lists->data[1] = psMemIncrRefCounter(refSources); 264 detections->allSources = pmSourceMatchMerge(lists, radius); 264 // XXX MEH changed to get only match (true to cull single), no apparent need of unmatched sources and can cause trouble 265 detections->allSources = pmSourceMatchMerge(lists, radius, true); 265 266 psFree(lists); 266 267 if (!detections->allSources) { -
trunk/psModules/src/objects/pmSourceMatch.c
r34403 r35240 340 340 341 341 342 psArray *pmSourceMatchMerge(psArray *sourceArrays, float radius )342 psArray *pmSourceMatchMerge(psArray *sourceArrays, float radius, bool cullSingles) 343 343 { 344 344 PS_ASSERT_ARRAY_NON_NULL(sourceArrays, NULL); 345 345 PS_ASSERT_FLOAT_LARGER_THAN(radius, 0.0, NULL); 346 346 347 psArray *matches = pmSourceMatchSources(sourceArrays, radius, false); // Source matches 347 // XXX MEH - ppSub should only get matched list so cull true. merge refers to the picking of the first entry data for match 348 //psArray *matches = pmSourceMatchSources(sourceArrays, radius, false); // Source matches 349 psArray *matches = pmSourceMatchSources(sourceArrays, radius, cullSingles); // Source matches 348 350 if (!matches) { 349 351 psError(psErrorCodeLast(), false, "Unable to match source lists."); -
trunk/psModules/src/objects/pmSourceMatch.h
r29004 r35240 68 68 /// Sources are pulled from the lists into a new list, with no effort made to adjust them. 69 69 psArray *pmSourceMatchMerge(psArray *sourceArrays, ///< Array of arrays of sources on each image 70 float radius ///< Matching radius 70 float radius, ///< Matching radius 71 bool cullSingles ///< Cull "matches" with only a single source? 71 72 ); 72 73
Note:
See TracChangeset
for help on using the changeset viewer.
