IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 25, 2008, 3:03:46 PM (17 years ago)
Author:
Paul Price
Message:

Turn psImageConvolveMask threads on/off as required, and set back when done.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmSubtractionMask.c

    r19164 r20832  
    137137    // footprint's distance of those (within 'footprint').
    138138
     139    bool oldThreads = psImageConvolveSetThreads(true); // Old value of threading for psImageConvolve
     140
    139141    if (!psImageConvolveMask(mask, mask, PM_SUBTRACTION_MASK_BAD_1,
    140142                             PM_SUBTRACTION_MASK_CONVOLVE_1,
     
    151153        return NULL;
    152154    }
     155
     156    psImageConvolveSetThreads(oldThreads);
    153157
    154158    return mask;
Note: See TracChangeset for help on using the changeset viewer.