IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 13, 2024, 10:19:51 PM (22 months ago)
Author:
hgao
Message:

finetune overscan region and stats for reducing and smoothing overscan array/vector

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2dbias/psModules/src/detrend/pmOverscan.c

    r42717 r42719  
    415415                // Reduce the overscans
    416416                // XXX need to save 2 different chi-square values
    417                 psVector *yReduced = pmOverscanVector(&chi2, overscanOpts->primary, yscanPixels, false);
     417                psVector *yReduced = pmOverscanVector(&chi2, overscanOpts->primary, yscanPixels, true);
    418418                psFree(yscanPixels);
    419419                if (!yReduced)
     
    453453                        }
    454454                        // Now normVector holds the sliced data; then, compute its robust mean
    455                         psStatsOptions statistic = PS_STAT_CLIPPED_MEAN;
     455                        psStatsOptions statistic = PS_STAT_ROBUST_MEDIAN;
    456456                        psStats *stats = psStatsAlloc(statistic);
    457457                        if (!psVectorStats(stats, normVector, NULL, NULL, 0))
    458458                        {
    459                                 psError(PS_ERR_UNKNOWN, false, "failure to measure clipped mean as normalization of xReduced");
     459                                psError(PS_ERR_UNKNOWN, false, "failure to measure robust median as the normalization of xReduced");
    460460                                psFree(stats);
    461461                                psFree(normVector);
Note: See TracChangeset for help on using the changeset viewer.