IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13660


Ignore:
Timestamp:
Jun 5, 2007, 3:12:24 PM (19 years ago)
Author:
Paul Price
Message:

Had some options to psImageInterpolateOptionsAlloc round the wrong way
(!). Ensuring mask will be created if it might be desired.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/src/pswarpTransformReadout_Opt.c

    r13522 r13660  
    6161    psImageInterpolateOptions *interp = psImageInterpolateOptionsAlloc(interpolationMode, inImage,
    6262                                                                       inVar, inMask, maskIn, NAN, NAN,
    63                                                                        maskPoor, maskBad, poorFrac);
     63                                                                       maskBad, maskPoor, poorFrac);
    6464
    6565    psPlane *inPix = psPlaneAlloc();    // Coordinates on the input detector
     
    7575        outVarData = output->weight->data.F32;
    7676    }
    77     if (inMask) {
     77    if (inMask || maskPoor || maskBad) {
    7878        if (!output->mask) {
    7979            output->mask = psImageAlloc(output->image->numCols, output->image->numRows, PS_TYPE_MASK);
     
    130130                outVarData[y-outRow0][x-outCol0] = varValue;
    131131            }
    132             if (inMask) {
     132            if (outMaskData) {
    133133                outMaskData[y-outRow0][x-outCol0] = maskValue;
    134134            }
    135135        }
    136136    }
     137
     138    output->data_exists = true;
    137139
    138140    psFree(interp);
Note: See TracChangeset for help on using the changeset viewer.