IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 30, 2005, 7:05:28 AM (21 years ago)
Author:
eugene
Message:

cleanups, segfault fixes, etc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImageDetrendMask.c

    r5857 r5858  
    11# include "ppImage.h"
    22
    3 bool ppDetrendMask (pmCell *cell, pmReadout *readout, pmImage *mask) {
     3# define MASK_MODE (PM_MASK_TRAP | PM_MASK_BADCOL | PM_MASK_SAT)
     4
     5// XXX pass 'concepts' not 'cell' to this function?
     6
     7bool ppDetrendMask (pmCell *cell, pmReadout *input, pmReadout *mask) {
    48
    59    float saturation = psMetadataLookupF32(NULL, cell->concepts, "CELL.SATURATION");
    610
    711    // Need to change this later to grow the mask by the size of the convolution kernel
    8     (void)pmMaskBadPixels(readout, mask,
    9                           PM_MASK_TRAP | PM_MASK_BADCOL | PM_MASK_SAT, saturation,
    10                           PM_MASK_TRAP, 0);
     12    // XXX does this function respect the mask / image cell region information?
     13    // XXX should probably take pmRegion *mask
     14    pmMaskBadPixels(input, mask->image, MASK_MODE, saturation, PM_MASK_TRAP, 0);
    1115
    1216    return true;
    1317}
    14 
Note: See TracChangeset for help on using the changeset viewer.