IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28310


Ignore:
Timestamp:
Jun 14, 2010, 1:27:33 PM (16 years ago)
Author:
bills
Message:

Don't set pixels that are SUSPECT to NAN

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/magic/remove/src/streaksio.c

    r27474 r28310  
    12941294        }
    12951295    }
    1296     sfiles->maskMask = ~convPoor;
     1296    // preserve pixels that are only suspect
     1297    psU32 suspect = (double) psMetadataLookupU32(&status, masks, "SUSPECT");
     1298    if (!status) {
     1299        psError(PM_ERR_CONFIG, false, "failed to lookup mask value for SUSPECT in recipes\n");
     1300        streaksExit("", PS_EXIT_CONFIG_ERROR);
     1301    }
     1302
     1303    sfiles->maskMask = ~(convPoor | suspect);
    12971304}
    12981305
  • trunk/pstamp/src/ppstampMakeStamp.c

    r27989 r28310  
    688688        }
    689689    }
    690     psU32 maskMask = ~convPoor;
     690    psU32 suspect = psMetadataLookupU32(&status, masks, "SUSPECT");
     691    if (!status) {
     692        psError(PM_ERR_CONFIG, false, "failed to lookup mask value for SUSPECT in recipes\n");
     693        return false;
     694    }
     695    psU32 maskMask = ~(convPoor | suspect);
    691696
    692697    double exciseValue;
Note: See TracChangeset for help on using the changeset viewer.