Changeset 20832
- Timestamp:
- Nov 25, 2008, 3:03:46 PM (17 years ago)
- Location:
- trunk/psModules/src/imcombine
- Files:
-
- 3 edited
-
pmStackReject.c (modified) (2 diffs)
-
pmSubtraction.c (modified) (2 diffs)
-
pmSubtractionMask.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmStackReject.c
r20633 r20832 258 258 } 259 259 #endif 260 261 // Need to set psImageConvolveMask threading OFF because that would generate threads on top of threads 262 bool oldThreads = psImageConvolveSetThreads(false); // Old value of threading for psImageColvolve 260 263 261 264 psImage *target = psImageRecycle(convolved, numCols, numRows, PS_TYPE_MASK); // Grown image … … 330 333 } 331 334 335 psImageConvolveSetThreads(oldThreads); 336 332 337 #ifdef TESTING 333 338 { -
trunk/psModules/src/imcombine/pmSubtraction.c
r20568 r20832 1238 1238 // and everything is executing psThreadPoolWait, waiting for some other mythical thread to complete the 1239 1239 // thread's work. 1240 psImageConvolveSetThreads(false);1240 bool oldThreads = psImageConvolveSetThreads(false); // Old value of threading for psImageConvolve 1241 1241 1242 1242 if (stride == 0) { … … 1333 1333 } 1334 1334 1335 psImageConvolveSetThreads(oldThreads); 1336 1335 1337 psFree(sys1); 1336 1338 psFree(sys2); -
trunk/psModules/src/imcombine/pmSubtractionMask.c
r19164 r20832 137 137 // footprint's distance of those (within 'footprint'). 138 138 139 bool oldThreads = psImageConvolveSetThreads(true); // Old value of threading for psImageConvolve 140 139 141 if (!psImageConvolveMask(mask, mask, PM_SUBTRACTION_MASK_BAD_1, 140 142 PM_SUBTRACTION_MASK_CONVOLVE_1, … … 151 153 return NULL; 152 154 } 155 156 psImageConvolveSetThreads(oldThreads); 153 157 154 158 return mask;
Note:
See TracChangeset
for help on using the changeset viewer.
