IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 23, 2010, 7:08:16 AM (16 years ago)
Author:
eugene
Message:

more clearly distinguish mask used to test for bad pixels from mask value used to set possibly blank pixels; do not fail is no covariances are supplied; replace instance of psMetadataAddU8 with psMetadataAddImageMask; replace pmReadoutMaskNonfinite with pmReadoutMaskInvalid (only masks unmasked nan pixels)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100823/ppStack/src/ppStackMatch.c

    r28253 r29217  
    6868
    6969    // user-defined masks to test for good/bad pixels (build from recipe list if not yet set)
    70     psMetadataAddU8(psphotRecipe, PS_LIST_TAIL, "MASK.PSPHOT", PS_META_REPLACE, "user-defined mask", maskBad);
     70    psMetadataAddImageMask(psphotRecipe, PS_LIST_TAIL, "MASK.PSPHOT", PS_META_REPLACE, "user-defined mask", maskBad);
    7171
    7272    psImage *binned = psphotModelBackgroundReadoutNoFile(ro, config); // Binned background model
     
    153153    int threads = psMetadataLookupS32(NULL, config->arguments, "-threads"); // Number of threads
    154154
    155     if (!pmReadoutMaskNonfinite(readout, maskVal)) {
     155    // Replaced pmReadoutMaskNonfinite with pmReadoutMaskInvalid (tests for already masked pixels)
     156    if (!pmReadoutMaskInvalid(readout, maskVal, maskBad)) {
    156157        psError(psErrorCodeLast(), false, "Unable to mask non-finite pixels in readout.");
    157158        return false;
Note: See TracChangeset for help on using the changeset viewer.