Changeset 9832 for trunk/ppMerge/src/ppMergeOptions.c
- Timestamp:
- Nov 2, 2006, 12:30:06 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ppMerge/src/ppMergeOptions.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppMerge/src/ppMergeOptions.c
r9539 r9832 35 35 options->scale = false; 36 36 options->darktime = false; 37 options->fringe = false; 37 38 options->shutter = false; 38 39 options->sample = 1; 39 40 options->mean = PS_STAT_SAMPLE_MEDIAN; 40 41 options->stdev = PS_STAT_SAMPLE_STDEV; 42 options->fringeNum = 100; 43 options->fringeSize = 10; 44 options->fringeSmoothX = 5; 45 options->fringeSmoothY = 5; 41 46 options->shutterSize = 10; 42 47 options->shutterIter = 2; … … 122 127 123 128 // 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); 136 145 137 146 options->combine->combine = parseStat(recipe, "COMBINE"); … … 148 157 options->scale = false; 149 158 options->darktime = false; 159 options->fringe = false; 150 160 options->shutter = false; 151 161 } else if (strcasecmp(type, "DARK") == 0) { … … 153 163 options->scale = false; 154 164 options->darktime = true; 165 options->fringe = false; 155 166 options->shutter = false; 156 167 } else if (strcasecmp(type, "FLAT") == 0) { … … 158 169 options->scale = true; 159 170 options->darktime = false; 171 options->fringe = false; 160 172 options->shutter = false; 161 173 } else if (strcasecmp(type, "FRINGE") == 0) { … … 163 175 options->scale = true; 164 176 options->darktime = false; 177 options->fringe = true; 165 178 options->shutter = false; 166 179 } else if (strcasecmp(type, "SHUTTER") == 0) { … … 168 181 options->scale = false; 169 182 options->darktime = false; 183 options->fringe = false; 170 184 options->shutter = true; 171 185 } else { … … 174 188 options->scale = false; 175 189 options->darktime = false; 190 options->fringe = false; 176 191 options->shutter = false; 177 192 } … … 181 196 options->scale = false; 182 197 options->darktime = false; 198 options->fringe = false; 199 options->shutter = false; 183 200 } 184 201
Note:
See TracChangeset
for help on using the changeset viewer.
