IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42566


Ignore:
Timestamp:
Dec 3, 2023, 3:02:49 PM (3 years ago)
Author:
eugene
Message:

merge changes from trunk: add parameter for nminpix to pmStackCombineByPercentile

Location:
branches/eam_branches/ipp-20230313/ppStack
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20230313/ppStack

  • branches/eam_branches/ipp-20230313/ppStack/src/ppStackReadout.c

    r42094 r42566  
    8383    thread->status = status ? PPSTACK_THREAD_SUCCESS : PPSTACK_THREAD_FAILURE;
    8484
    85     // fprintf (stderr, "finished thread %d, status %d : scan range %d - %d\n", thread->entry, thread->status, thread->firstScan, thread->lastScan);
     85    fprintf (stderr, "finished thread %d, status %d : scan range %d - %d\n", thread->entry, thread->status, thread->firstScan, thread->lastScan);
    8686
    8787    psAssert(status, "Stacking failed.");
     
    383383    bool mdok;                          // Status of MD lookup
    384384    psF64 rejectFraction = psMetadataLookupF32(&mdok, recipe, "COMBINE.REJECT.FRACTION"); // fraction of outliers to reject
     385    int nminpix = psMetadataLookupS32(&mdok, recipe, "NMINPIX"); // Minimum input per pixel to combine with
    385386
    386387    char defaultBlankStr[16] = "BLANK";
     
    422423    }
    423424
    424     if (!pmStackCombineByPercentile(outRO, expRO, stackData, rejectFraction, maskBad, maskSuspect, maskBlank)) {
     425      if (!pmStackCombineByPercentile(outRO, expRO, stackData, rejectFraction, nminpix, maskBad, maskSuspect, maskBlank)) {
    425426        psError(PS_ERR_UNKNOWN, false, "Unable to combine input readouts with rejection.");
    426427        psFree(stackData);
Note: See TracChangeset for help on using the changeset viewer.