IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 2, 2006, 12:30:06 PM (20 years ago)
Author:
Paul Price
Message:

Adding fringe combination.

File:
1 edited

Legend:

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

    r9539 r9832  
    3535    options->scale = false;
    3636    options->darktime = false;
     37    options->fringe = false;
    3738    options->shutter = false;
    3839    options->sample = 1;
    3940    options->mean = PS_STAT_SAMPLE_MEDIAN;
    4041    options->stdev = PS_STAT_SAMPLE_STDEV;
     42    options->fringeNum = 100;
     43    options->fringeSize = 10;
     44    options->fringeSmoothX = 5;
     45    options->fringeSmoothY = 5;
    4146    options->shutterSize = 10;
    4247    options->shutterIter = 2;
     
    122127
    123128    // First, deal with the recipe.  These are parameters that will typically be constant for a camera.
    124     OPTION_PARSE(options->rows,              recipe, "ROWS",      U16 );
    125     OPTION_PARSE(options->minElectrons,      recipe, "ELECTRONS", F32 );
    126     OPTION_PARSE(options->sample,            recipe, "SAMPLE",    S32 );
    127     OPTION_PARSE(options->combine->rej,      recipe, "REJ",       F32 );
    128     OPTION_PARSE(options->combine->iter,     recipe, "ITER",      S32 );
    129     OPTION_PARSE(options->combine->fracHigh, recipe, "FRACHIGH",  F32 );
    130     OPTION_PARSE(options->combine->fracLow,  recipe, "FRACLOW",   F32 );
    131     OPTION_PARSE(options->combine->nKeep,    recipe, "NKEEP",     S32 );
    132     OPTION_PARSE(options->combine->maskVal,  recipe, "MASKVAL",   S32 );
    133     OPTION_PARSE(options->shutterSize,       recipe, "SHUTTER.SIZE", S32 );
    134     OPTION_PARSE(options->shutterIter,       recipe, "SHUTTER.ITER", S32 );
    135     OPTION_PARSE(options->shutterRej,        recipe, "SHUTTER.REJECT", F32 );
     129    OPTION_PARSE(options->rows,              recipe, "ROWS",           U16);
     130    OPTION_PARSE(options->minElectrons,      recipe, "ELECTRONS",      F32);
     131    OPTION_PARSE(options->sample,            recipe, "SAMPLE",         S32);
     132    OPTION_PARSE(options->combine->rej,      recipe, "REJ",            F32);
     133    OPTION_PARSE(options->combine->iter,     recipe, "ITER",           S32);
     134    OPTION_PARSE(options->combine->fracHigh, recipe, "FRACHIGH",       F32);
     135    OPTION_PARSE(options->combine->fracLow,  recipe, "FRACLOW",        F32);
     136    OPTION_PARSE(options->combine->nKeep,    recipe, "NKEEP",          S32);
     137    OPTION_PARSE(options->combine->maskVal,  recipe, "MASKVAL",        S32);
     138    OPTION_PARSE(options->fringeNum,         recipe, "FRINGE.NUM",     S32);
     139    OPTION_PARSE(options->fringeSize,        recipe, "FRINGE.SIZE",    S32);
     140    OPTION_PARSE(options->fringeSmoothX,     recipe, "FRINGE.XSMOOTH", S32);
     141    OPTION_PARSE(options->fringeSmoothY,     recipe, "FRINGE.YSMOOTH", S32);
     142    OPTION_PARSE(options->shutterSize,       recipe, "SHUTTER.SIZE",   S32);
     143    OPTION_PARSE(options->shutterIter,       recipe, "SHUTTER.ITER",   S32);
     144    OPTION_PARSE(options->shutterRej,        recipe, "SHUTTER.REJECT", F32);
    136145
    137146    options->combine->combine = parseStat(recipe, "COMBINE");
     
    148157            options->scale = false;
    149158            options->darktime = false;
     159            options->fringe = false;
    150160            options->shutter = false;
    151161        } else if (strcasecmp(type, "DARK") == 0) {
     
    153163            options->scale = false;
    154164            options->darktime = true;
     165            options->fringe = false;
    155166            options->shutter = false;
    156167        } else if (strcasecmp(type, "FLAT") == 0) {
     
    158169            options->scale = true;
    159170            options->darktime = false;
     171            options->fringe = false;
    160172            options->shutter = false;
    161173        } else if (strcasecmp(type, "FRINGE") == 0) {
     
    163175            options->scale = true;
    164176            options->darktime = false;
     177            options->fringe = true;
    165178            options->shutter = false;
    166179        } else if (strcasecmp(type, "SHUTTER") == 0) {
     
    168181            options->scale = false;
    169182            options->darktime = false;
     183            options->fringe = false;
    170184            options->shutter = true;
    171185        } else {
     
    174188            options->scale = false;
    175189            options->darktime = false;
     190            options->fringe = false;
    176191            options->shutter = false;
    177192        }
     
    181196        options->scale = false;
    182197        options->darktime = false;
     198        options->fringe = false;
     199        options->shutter = false;
    183200    }
    184201
Note: See TracChangeset for help on using the changeset viewer.