IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35240


Ignore:
Timestamp:
Mar 5, 2013, 2:37:52 PM (13 years ago)
Author:
mhuber
Message:

adding CullSingles option to pmSourceMatchMerge for ppSubMatchPSFs select to only merge the matched sources for ppSub

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubMatchPSFs.c

    r34089 r35240  
    262262        lists->data[0] = psMemIncrRefCounter(inSources);
    263263        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);
    265266        psFree(lists);
    266267        if (!detections->allSources) {
  • trunk/psModules/src/objects/pmSourceMatch.c

    r34403 r35240  
    340340
    341341
    342 psArray *pmSourceMatchMerge(psArray *sourceArrays, float radius)
     342psArray *pmSourceMatchMerge(psArray *sourceArrays, float radius, bool cullSingles)
    343343{
    344344    PS_ASSERT_ARRAY_NON_NULL(sourceArrays, NULL);
    345345    PS_ASSERT_FLOAT_LARGER_THAN(radius, 0.0, NULL);
    346346
    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
    348350    if (!matches) {
    349351        psError(psErrorCodeLast(), false, "Unable to match source lists.");
  • trunk/psModules/src/objects/pmSourceMatch.h

    r29004 r35240  
    6868/// Sources are pulled from the lists into a new list, with no effort made to adjust them.
    6969psArray *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?
    7172    );
    7273
Note: See TracChangeset for help on using the changeset viewer.