IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7434


Ignore:
Timestamp:
Jun 8, 2006, 10:54:55 AM (20 years ago)
Author:
eugene
Message:

skip background regions with no valid pixels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotImageMedian.c

    r7385 r7434  
    7272            region = psRegionForImage (image, region);
    7373            psImage *subset  = psImageSubset (image, region);
     74            if (!subset->numCols || !subset->numRows) {
     75                psFree (subset);
     76                continue;
     77            }
     78
    7479            psImage *submask = psImageSubset (mask, region);
    7580
     
    131136    }
    132137
     138    // if (backSub) psphotSaveImage (NULL, backSub->image, "backsub.fits");
     139    // psphotSaveImage (NULL, model->image, "backmdl.fits");
     140    // psphotSaveImage (NULL, background->image, "backgnd.fits");
     141
    133142    psLogMsg ("psphot", 3, "subtracted background model: %f sec\n", psTimerMark ("psphot"));
    134143    psFree(rng);
Note: See TracChangeset for help on using the changeset viewer.