IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29216


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

replace pmReadoutMaskNonfinite with pmReadoutMaskInvalid (only masks unmasked nan pixels); call pmReadoutMaskInvalid before calling pmSubtractionMatchPrecalc (which now does not call pmSubtractionMaskInvalid)

Location:
branches/eam_branches/ipp-20100823/ppSub/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100823/ppSub/src/ppSubConvolve.c

    r28567 r29216  
    241241            psThreadPoolInit(threads);
    242242        }
     243
     244        // Mask the NAN values (USE BLANK instead of SAT?)
     245        if (!pmReadoutMaskInvalid(input, maskVal, maskBad)) {
     246          psError(PPSUB_ERR_DATA, false, "Unable to mask non-finite pixels in input.");
     247          return false;
     248        }
     249        if (!pmReadoutMaskInvalid(ref, maskVal, maskBad)) {
     250          psError(PPSUB_ERR_DATA, false, "Unable to mask non-finite pixels in reference.");
     251          return false;
     252        }
     253
    243254        if (!pmSubtractionMatchPrecalc(inConv, refConv, input, ref, inRO->analysis,
    244255                                       stride, kernelErr, covarFrac, maskVal, maskBad, maskPoor,
  • branches/eam_branches/ipp-20100823/ppSub/src/ppSubSetMasks.c

    r26982 r29216  
    7777    }
    7878
    79     // Mask the NAN values
    80     if (!pmReadoutMaskNonfinite(inRO, satValue)) {
     79    // Mask the NAN values (USE BLANK instead of SAT?)
     80    if (!pmReadoutMaskInvalid(inRO, maskValue, satValue)) {
    8181        psError(PPSUB_ERR_DATA, false, "Unable to mask non-finite pixels in input.");
    8282        return false;
    8383    }
    84     if (!pmReadoutMaskNonfinite(refRO, satValue)) {
     84    if (!pmReadoutMaskInvalid(refRO, maskValue, satValue)) {
    8585        psError(PPSUB_ERR_DATA, false, "Unable to mask non-finite pixels in reference.");
    8686        return false;
    8787    }
    88 
    8988
    9089#if 0
Note: See TracChangeset for help on using the changeset viewer.