IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31609


Ignore:
Timestamp:
Jun 8, 2011, 11:40:36 AM (15 years ago)
Author:
eugene
Message:

replace background regardless of mask (respect nan)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110505/psphot/src/psphotSkyReplace.c

    r29936 r31609  
    4141    // select the corresponding images
    4242    psF32 **image = readout->image->data.F32;
    43     psImageMaskType  **mask  = readout->mask->data.PS_TYPE_IMAGE_MASK_DATA;
     43    // psImageMaskType  **mask  = readout->mask->data.PS_TYPE_IMAGE_MASK_DATA;
    4444    psF32 **back  = background->image->data.F32;
    4545
     
    4747    for (int j = 0; j < readout->image->numRows; j++) {
    4848        for (int i = 0; i < readout->image->numCols; i++) {
    49             if (!mask[j][i]) {
     49            if (isfinite(image[j][i]) && isfinite(back[j][i])) {
    5050                image[j][i] += back[j][i];
    5151            }
Note: See TracChangeset for help on using the changeset viewer.