IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15933


Ignore:
Timestamp:
Dec 26, 2007, 4:09:56 PM (18 years ago)
Author:
eugene
Message:

adding ppImageReplaceBackground

Location:
trunk/ppImage/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/Makefile.am

    r14000 r15933  
    2727        ppImagePixelStats.c \
    2828        ppImageMetadataStats.c \
     29        ppImageReplaceBackground.c \
    2930        ppImageDefineFile.c \
    3031        ppImageFileCheck.c \
     
    5455        ppImagePixelStats.c \
    5556        ppImageMetadataStats.c \
     57        ppImageReplaceBackground.c \
    5658        ppImageDefineFile.c \
    5759        ppImageFileCheck.c \
  • trunk/ppImage/src/ppImage.h

    r14223 r15933  
    3636    bool doAstromMosaic;                // full-mosaic Astrometry
    3737    bool doStats;                       // call ppStats on the image
     38    bool replaceMasked;                 // fill in masked values with background model
    3839
    3940    // output files requested
     
    127128bool ppImageAddstar (pmConfig *config);
    128129
     130bool ppImageReplaceBackground (pmConfig *config, pmFPAview *view, ppImageOptions *options);
     131
    129132bool ppImageMosaicChip (pmConfig *config, const ppImageOptions *options, const pmFPAview *view,
    130133                        const char *outFile, const char *inFile);
  • trunk/ppImage/src/ppImageLoop.c

    r15216 r15933  
    9090        }
    9191
     92        // replace the masked pixels with the background level
     93        if (options->replaceMasked) {
     94            if (!ppImageReplaceBackground (config, view, options))
     95                ESCAPE ("Unable to replace masked pixels with background level");
     96        }
     97
    9298        // Close cells (XXX shouldn't pmFPAfileClose iterate down as needed?)
    9399        view->cell = -1;
  • trunk/ppImage/src/ppImageOptions.c

    r14507 r15933  
    272272    options->fringeKeep = psMetadataLookupF32(NULL, recipe, "FRINGE.KEEP");
    273273
     274    options->replaceMasked  = psMetadataLookupBool(NULL, recipe, "REPLACE.MASKED");
     275
    274276    return options;
    275277}
Note: See TracChangeset for help on using the changeset viewer.