IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 14, 2006, 4:49:37 PM (19 years ago)
Author:
Paul Price
Message:

Reorganising shutter stuff to make it fit within the general framework in ppMergeCombine. Adding ppMergeMask to create a bad pixel mask.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMerge/src/ppMergeOptions.c

    r9832 r9996  
    3737    options->fringe = false;
    3838    options->shutter = false;
     39    options->mask = false;
    3940    options->sample = 1;
    4041    options->mean = PS_STAT_SAMPLE_MEDIAN;
     
    4748    options->shutterIter = 2;
    4849    options->shutterRej = 3.0;
     50    options->maskSuspect = 5.0;
     51    options->maskBad = 10.0;
    4952    options->onOff = 0;
    5053    options->combine = pmCombineParamsAlloc(PS_STAT_SAMPLE_MEAN);
     
    143146    OPTION_PARSE(options->shutterIter,       recipe, "SHUTTER.ITER",   S32);
    144147    OPTION_PARSE(options->shutterRej,        recipe, "SHUTTER.REJECT", F32);
     148    OPTION_PARSE(options->maskSuspect,       recipe, "MASK.SUSPECT",   F32);
     149    OPTION_PARSE(options->maskBad,           recipe, "MASK.BAD",       F32);
    145150
    146151    options->combine->combine = parseStat(recipe, "COMBINE");
     
    159164            options->fringe = false;
    160165            options->shutter = false;
     166            options->mask = false;
    161167        } else if (strcasecmp(type, "DARK") == 0) {
    162168            options->zero = false;
     
    165171            options->fringe = false;
    166172            options->shutter = false;
     173            options->mask = false;
    167174        } else if (strcasecmp(type, "FLAT") == 0) {
    168175            options->zero = false;
     
    171178            options->fringe = false;
    172179            options->shutter = false;
     180            options->mask = false;
    173181        } else if (strcasecmp(type, "FRINGE") == 0) {
    174182            options->zero = true;
     
    177185            options->fringe = true;
    178186            options->shutter = false;
     187            options->mask = false;
    179188        } else if (strcasecmp(type, "SHUTTER") == 0) {
    180189            options->zero = false;
     
    183192            options->fringe = false;
    184193            options->shutter = true;
     194            options->mask = false;
     195            options->rows = 0;          // Read the whole image at once
     196        } else if (strcasecmp(type, "MASK") == 0) {
     197            options->zero = false;
     198            options->scale = false;
     199            options->darktime = false;
     200            options->fringe = false;
     201            options->shutter = false;
     202            options->mask = true;
    185203        } else {
    186204            psLogMsg(__func__, PS_LOG_WARN, "Unrecognised image type: %s --- assuming BIAS.\n", type);
     
    190208            options->fringe = false;
    191209            options->shutter = false;
     210            options->mask = false;
    192211        }
    193212    } else {
     
    198217        options->fringe = false;
    199218        options->shutter = false;
     219        options->mask = false;
    200220    }
    201221
Note: See TracChangeset for help on using the changeset viewer.