IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 22, 2008, 12:45:36 PM (18 years ago)
Author:
Paul Price
Message:

Reworking the masking so as to avoid exploding the number of bad pixels in the convolved image. Introduced the bad/poor distinction. Bad pixels that are convolved now have a large 'poor' halo in the mask, with a smaller 'bad' halo. Got rid of the 'FOOTPRINT' mask value (internal subtraction mask): there's no need to convolve the mask in order to find out if a sprinkling of footprints are bad (not sure this is so efficient when a list of sources isn't supplied), and I needed the mask bits to signify the difference between 'bad' and 'poor'. Tested on a single subtraction, which seems to work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmSubtractionMask.c

    r17729 r19164  
    138138
    139139    if (!psImageConvolveMask(mask, mask, PM_SUBTRACTION_MASK_BAD_1,
    140                              PM_SUBTRACTION_MASK_CONVOLVE_1 | PM_SUBTRACTION_MASK_FOOTPRINT_1,
     140                             PM_SUBTRACTION_MASK_CONVOLVE_1,
    141141                             -size, size, -size, size)) {
    142142        psError(PS_ERR_UNKNOWN, false, "Unable to convolve bad pixels from mask 1.");
     
    145145    }
    146146    if (!psImageConvolveMask(mask, mask, PM_SUBTRACTION_MASK_BAD_2,
    147                              PM_SUBTRACTION_MASK_CONVOLVE_2 | PM_SUBTRACTION_MASK_FOOTPRINT_2,
     147                             PM_SUBTRACTION_MASK_CONVOLVE_2,
    148148                             -size, size, -size, size)) {
    149149        psError(PS_ERR_UNKNOWN, false, "Unable to convolve bad pixels from mask 2.");
    150         psFree(mask);
    151         return NULL;
    152     }
    153     if (!psImageConvolveMask(mask, mask, PM_SUBTRACTION_MASK_CONVOLVE_1,
    154                              PM_SUBTRACTION_MASK_FOOTPRINT_1,
    155                              -footprint, footprint, -footprint, footprint)) {
    156         psError(PS_ERR_UNKNOWN, false, "Unable to reconvolve bad pixels from mask 1.");
    157         psFree(mask);
    158         return NULL;
    159     }
    160     if (!psImageConvolveMask(mask, mask, PM_SUBTRACTION_MASK_CONVOLVE_2,
    161                              PM_SUBTRACTION_MASK_FOOTPRINT_2,
    162                              -footprint, footprint, -footprint, footprint)) {
    163         psError(PS_ERR_UNKNOWN, false, "Unable to reconvolve bad pixels from mask 2.");
    164150        psFree(mask);
    165151        return NULL;
Note: See TracChangeset for help on using the changeset viewer.