IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 26, 2009, 8:40:07 PM (17 years ago)
Author:
eugene
Message:

incorporating changes from 16bit mask upgrades (eam_branch_20081230)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMerge/src/ppMergeMask.c

    r18756 r21183  
    2626    float smoothScale = psMetadataLookupF32(&mdok, config->arguments, "MASK.SMOOTH.SCALE"); // Radius to grow mask
    2727
    28     psMaskType markVal;
    29     psMaskType maskValRaw;
     28    psImageMaskType markVal;
     29    psImageMaskType maskValRaw;
    3030    if (!pmConfigMaskSetBits (&maskValRaw, &markVal, config)) {
    3131        psError (PS_ERR_UNKNOWN, true, "Unable to define the mask bit values");
     
    3434
    3535    char *maskOutName = psMetadataLookupStr (&mdok, config->arguments, "MASK.SET.VALUE");
    36     psMaskType maskValOut = pmConfigMaskGet (maskOutName, config);
     36    psImageMaskType maskValOut = pmConfigMaskGet (maskOutName, config);
    3737    if (!maskValOut) {
    3838        psError (PS_ERR_UNKNOWN, true, "Undefined output mask bit value");
     
    137137                int x = pixel % numCols;
    138138                int y = pixel / numCols;
    139                 if (mask && (mask->data.PS_TYPE_MASK_DATA[y][x] & maskValRaw)) continue;
    140                 if (outMask && (outMask->data.PS_TYPE_MASK_DATA[y][x] & maskValOut)) continue;
     139                if (mask && (mask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] & maskValRaw)) continue;
     140                if (outMask && (outMask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] & maskValOut)) continue;
    141141                if (!isfinite(image->data.F32[y][x])) continue;
    142142
Note: See TracChangeset for help on using the changeset viewer.