IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 27, 2009, 11:49:17 AM (17 years ago)
Author:
Paul Price
Message:

Allow convolution of images to be optional when stacking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackReject.c

    r23341 r23573  
    1414    psAssert(options, "Require options");
    1515    psAssert(config, "Require configuration");
     16
     17    if (!options->convolve) {
     18        // No need to do complicated rejection when we haven't convolved
     19        return true;
     20    }
    1621
    1722    int num = options->num;             // Number of inputs
     
    8691
    8792        psPixels *reject = pmStackReject(options->inspect->data[i], options->numCols, options->numRows,
    88                                          threshold, poorFrac, stride, options->subRegions->data[i],
    89                                          options->subKernels->data[i]); // Rejected pixels
     93                                         threshold, poorFrac, stride, options->regions->data[i],
     94                                         options->kernels->data[i]); // Rejected pixels
    9095
    9196#ifdef TESTING
     
    141146
    142147    psFree(options->inspect); options->inspect = NULL;
    143     psFree(options->subKernels); options->subKernels = NULL;
    144     psFree(options->subRegions); options->subRegions = NULL;
     148    psFree(options->kernels); options->kernels = NULL;
     149    psFree(options->regions); options->regions = NULL;
    145150
    146151    if (numRejected >= num - 1) {
Note: See TracChangeset for help on using the changeset viewer.