IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25468


Ignore:
Timestamp:
Sep 21, 2009, 3:20:00 PM (17 years ago)
Author:
Paul Price
Message:

Fix order of arguments following change to ppStackMatch.c

File:
1 edited

Legend:

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

    r21351 r25468  
    4343    if (box > 0) {
    4444        // Convolve a subimage, then stick it in the target
    45         // XXX if (threaded) {
    46         // XXX     psMutexLock(source);
    47         // XXX }
    4845        psImage *mask = psImageSubset(source, psRegionSet(xMin - box, xMax + box,
    4946                                                          yMin - box, yMax + box)); // Mask to convolve
    50         // XXX if (threaded) {
    51         // XXX     psMutexUnlock(source);
    52         // XXX }
    5347        psImage *convolved = psImageConvolveMask(NULL, mask, PM_STACK_MASK_BAD, PM_STACK_MASK_CONVOLVE,
    5448                                                 -box, box, -box, box); // Convolved mask
    55         // XXX if (threaded) {
    56         // XXX     psMutexLock(source);
    57         // XXX }
    5849        psFree(mask);
    59         // XXX if (threaded) {
    60         // XXX     psMutexUnlock(source);
    61         // XXX }
    6250
    6351        int numBytes = (xMax - xMin) * PSELEMTYPE_SIZEOF(PS_TYPE_IMAGE_MASK); // Number of bytes to copy
     
    162150    pmReadout *inRO = pmReadoutAlloc(NULL); // Readout with input image
    163151    inRO->image = image;
    164     // XXX if (threaded) {
    165     // XXX     psMutexInit(image);
    166     // XXX }
    167152    for (int i = 0; i < numRegions; i++) {
    168153        psRegion *region = subRegions->data[i]; // Region of interest
    169154        pmSubtractionKernels *kernels = subKernels->data[i]; // Kernel of interest
    170         if (!pmSubtractionConvolve(convRO, NULL, inRO, NULL, NULL, stride, 0, 0, 1.0, 0.0,
     155        if (!pmSubtractionConvolve(NULL, convRO, NULL, inRO, NULL, stride, 0, 0, 1.0, 0.0,
    171156                                   region, kernels, false, true)) {
    172157            psError(PS_ERR_UNKNOWN, false, "Unable to convolve mask image in region %d.", i);
     
    211196        }
    212197    }
    213     // XXX if (threaded) {
    214     // XXX     psMutexDestroy(image);
    215     // XXX }
    216198    psFree(inRO);
    217199    psImage *convolved = psMemIncrRefCounter(convRO->image);
     
    264246    psImage *target = psImageRecycle(convolved, numCols, numRows, PS_TYPE_IMAGE_MASK); // Grown image
    265247    psImageInit(target, 0);
    266     // XXX if (threaded) {
    267     // XXX     psMutexInit(source);
    268     // XXX }
    269248    for (int i = 0; i < subRegions->n; i++) {
    270249        psRegion *region = subRegions->data[i]; // Subtraction region
     
    287266                    psArray *args = job->args; // Job arguments
    288267                    psArrayAdd(args, 1, target);
    289                     // XXX psMutexLock(source);
    290268                    psArrayAdd(args, 1, source);
    291                     // XXX psMutexUnlock(source);
    292269                    psArrayAdd(args, 1, kernels);
    293270                    PS_ARRAY_ADD_SCALAR(args, numCols, PS_TYPE_S32);
     
    332309        }
    333310
    334         // XXX psMutexDestroy(source);
    335311    }
    336312
Note: See TracChangeset for help on using the changeset viewer.