IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 13, 2013, 4:18:09 PM (13 years ago)
Author:
watersc1
Message:

Use the options to hold the doBackground boolean. Changes in ppStackCamera to reset the recipe value if no inputs are specified.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackLoop.c

    r34860 r35167  
    6363    }
    6464
    65     bool doBackground = psMetadataLookupBool(NULL, recipe, "BACKGROUND.MODEL");
     65    //    bool doBackground = psMetadataLookupBool(NULL, recipe, "BACKGROUND.MODEL");
    6666
    6767    // Prepare for combination
    68     if (!ppStackCombinePrepare("PPSTACK.OUTPUT", "PPSTACK.OUTPUT.EXP", doBackground ? "PPSTACK.OUTPUT.BKGMODEL" : NULL, PPSTACK_FILES_STACK, stack, options, config)) {
     68    if (!ppStackCombinePrepare("PPSTACK.OUTPUT", "PPSTACK.OUTPUT.EXP", options->doBackground ? "PPSTACK.OUTPUT.BKGMODEL" : NULL, PPSTACK_FILES_STACK, stack, options, config)) {
    6969        psError(psErrorCodeLast(), false, "Unable to prepare for combination.");
    7070        psFree(stack);
     
    146146
    147147    // Generate median background stack here.
    148     if (doBackground && !ppStackCombineBackground(stack, options, config)) {
     148    if (options->doBackground && !ppStackCombineBackground(stack, options, config)) {
    149149      psError(psErrorCodeLast(), false, "Unable to generate median of background images.");
    150150      psFree(stack);
Note: See TracChangeset for help on using the changeset viewer.