Changeset 21351 for trunk/psModules/src/imcombine/pmStackReject.c
- Timestamp:
- Feb 5, 2009, 3:09:38 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/imcombine/pmStackReject.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmStackReject.c
r21183 r21351 43 43 if (box > 0) { 44 44 // Convolve a subimage, then stick it in the target 45 if (threaded) {46 psMutexLock(source);47 }45 // XXX if (threaded) { 46 // XXX psMutexLock(source); 47 // XXX } 48 48 psImage *mask = psImageSubset(source, psRegionSet(xMin - box, xMax + box, 49 49 yMin - box, yMax + box)); // Mask to convolve 50 if (threaded) {51 psMutexUnlock(source);52 }50 // XXX if (threaded) { 51 // XXX psMutexUnlock(source); 52 // XXX } 53 53 psImage *convolved = psImageConvolveMask(NULL, mask, PM_STACK_MASK_BAD, PM_STACK_MASK_CONVOLVE, 54 54 -box, box, -box, box); // Convolved mask 55 if (threaded) {56 psMutexLock(source);57 }55 // XXX if (threaded) { 56 // XXX psMutexLock(source); 57 // XXX } 58 58 psFree(mask); 59 if (threaded) {60 psMutexUnlock(source);61 }59 // XXX if (threaded) { 60 // XXX psMutexUnlock(source); 61 // XXX } 62 62 63 63 int numBytes = (xMax - xMin) * PSELEMTYPE_SIZEOF(PS_TYPE_IMAGE_MASK); // Number of bytes to copy … … 162 162 pmReadout *inRO = pmReadoutAlloc(NULL); // Readout with input image 163 163 inRO->image = image; 164 if (threaded) {165 psMutexInit(image);166 }164 // XXX if (threaded) { 165 // XXX psMutexInit(image); 166 // XXX } 167 167 for (int i = 0; i < numRegions; i++) { 168 168 psRegion *region = subRegions->data[i]; // Region of interest … … 211 211 } 212 212 } 213 if (threaded) {214 psMutexDestroy(image);215 }213 // XXX if (threaded) { 214 // XXX psMutexDestroy(image); 215 // XXX } 216 216 psFree(inRO); 217 217 psImage *convolved = psMemIncrRefCounter(convRO->image); … … 264 264 psImage *target = psImageRecycle(convolved, numCols, numRows, PS_TYPE_IMAGE_MASK); // Grown image 265 265 psImageInit(target, 0); 266 if (threaded) {267 psMutexInit(source);268 }266 // XXX if (threaded) { 267 // XXX psMutexInit(source); 268 // XXX } 269 269 for (int i = 0; i < subRegions->n; i++) { 270 270 psRegion *region = subRegions->data[i]; // Subtraction region … … 287 287 psArray *args = job->args; // Job arguments 288 288 psArrayAdd(args, 1, target); 289 psMutexLock(source);289 // XXX psMutexLock(source); 290 290 psArrayAdd(args, 1, source); 291 psMutexUnlock(source);291 // XXX psMutexUnlock(source); 292 292 psArrayAdd(args, 1, kernels); 293 293 PS_ARRAY_ADD_SCALAR(args, numCols, PS_TYPE_S32); … … 332 332 } 333 333 334 psMutexDestroy(source);334 // XXX psMutexDestroy(source); 335 335 } 336 336
Note:
See TracChangeset
for help on using the changeset viewer.
