Changeset 14356
- Timestamp:
- Jul 20, 2007, 3:29:23 PM (19 years ago)
- Location:
- trunk/ppMerge/src
- Files:
-
- 3 edited
-
ppMergeCombine.c (modified) (4 diffs)
-
ppMergeOptions.c (modified) (3 diffs)
-
ppMergeOptions.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppMerge/src/ppMergeCombine.c
r14007 r14356 286 286 data->stats = psMetadataAlloc(); 287 287 } 288 if (!ppStatsFPA(data->stats, data->out, view, options->combine->maskVal, config)) { 288 if (!ppStatsFPA(data->stats, data->out, view, 289 options->combine->maskVal | pmConfigMask("BLANK", config), 290 config)) { 289 291 psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to generate stats for image.\n"); 290 292 return false; … … 304 306 for (int i = 0; i < filenames->n; i++) { 305 307 pmFPA *fpaIn = data->in->data[i]; // Input FPA 306 if (!fpaIn) { continue; } // was not a valid input file308 if (!fpaIn) { continue; } // was not a valid input file 307 309 pmChip *chipIn = fpaIn->chips->data[view->chip]; // Input chip 308 310 pmCell *cellIn = chipIn->cells->data[view->cell]; // Input cell … … 325 327 for (int i = 0; i < filenames->n; i++) { 326 328 pmFPA *fpaIn = data->in->data[i]; // Input FPA 327 if (!fpaIn) { continue; } // was not a valid input file329 if (!fpaIn) { continue; } // was not a valid input file 328 330 pmChip *chipIn = fpaIn->chips->data[view->chip]; // Input chip 329 331 pmChipFreeData(chipIn); … … 345 347 for (int i = 0; i < filenames->n; i++) { 346 348 pmFPA *fpaIn = data->in->data[i]; // Input FPA 347 if (!fpaIn) { continue; } // was not a valid input file349 if (!fpaIn) { continue; } // was not a valid input file 348 350 pmFPAFreeData(fpaIn); 349 351 } -
trunk/ppMerge/src/ppMergeOptions.c
r13873 r14356 24 24 25 25 // Allocator 26 ppMergeOptions *ppMergeOptionsAlloc( void)26 ppMergeOptions *ppMergeOptionsAlloc(const pmConfig *config) 27 27 { 28 28 ppMergeOptions *options = psAlloc(sizeof(ppMergeOptions)); // The options, to return … … 59 59 options->combine->maskVal = 0xff; 60 60 options->combine->weights = false; 61 options->combine->blank = pmConfigMask("BLANK", config); 61 62 options->satMask = 0x00; 62 63 options->badMask = 0x00; … … 96 97 ) 97 98 { 98 ppMergeOptions *options = ppMergeOptionsAlloc( ); // The merge options99 ppMergeOptions *options = ppMergeOptionsAlloc(config); // The merge options 99 100 100 101 // We need to work out the camera before we can get the recipe. Take the first input and inspect it. -
trunk/ppMerge/src/ppMergeOptions.h
r13593 r14356 44 44 45 45 // Allocator 46 ppMergeOptions *ppMergeOptionsAlloc( void);46 ppMergeOptions *ppMergeOptionsAlloc(const pmConfig *config); 47 47 48 48
Note:
See TracChangeset
for help on using the changeset viewer.
