Changeset 27402 for trunk/ppStack/src/ppStackCamera.c
- Timestamp:
- Mar 23, 2010, 9:12:53 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/ppStack/src/ppStackCamera.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src/ppStackCamera.c
r27400 r27402 283 283 } 284 284 285 286 // Exposure image287 pmFPA *expFPA = pmFPAConstruct(config->camera, config->cameraName); // FPA to contain the output288 if (!expFPA) {289 psError(psErrorCodeLast(), false, "Unable to construct an FPA from camera configuration.");290 return false;291 }292 pmFPAfile *exp = pmFPAfileDefineOutput(config, expFPA, "PPSTACK.OUTPUT.EXP");293 psFree(expFPA); // Drop reference294 if (!exp) {295 psError(psErrorCodeLast(), false, _("Unable to generate output file from PPSTACK.OUTPUT.EXP"));296 return false;297 }298 if (exp->type != PM_FPA_FILE_IMAGE) {299 psError(PPSTACK_ERR_CONFIG, true, "PPSTACK.OUTPUT.EXP is not of type IMAGE");300 return false;301 }302 exp->save = true;303 304 if (!pmFPAAddSourceFromFormat(expFPA, "Stack", exp->format)) {305 psError(psErrorCodeLast(), false, "Unable to generate output FPA.");306 return false;307 }308 309 // Exposure numbers310 pmFPAfile *expNum = pmFPAfileDefineOutput(config, exp->fpa, "PPSTACK.OUTPUT.EXPNUM");311 if (!expNum) {312 psError(psErrorCodeLast(), false, _("Unable to generate output file from PPSTACK.OUTPUT.MASK"));313 return false;314 }315 if (expNum->type != PM_FPA_FILE_MASK) {316 psError(PPSTACK_ERR_CONFIG, true, "PPSTACK.OUTPUT.EXPNUM is not of type MASK");317 return false;318 }319 expNum->save = true;320 321 322 323 285 if (havePSFs) { 324 286 pmFPA *psfFPA = pmFPAConstruct(config->camera, config->cameraName); // FPA to contain PSF … … 340 302 } 341 303 304 #if 1 342 305 // Unconvolved stack 343 306 pmFPA *unconvFPA = pmFPAConstruct(config->camera, config->cameraName); // FPA to contain unconvolved output … … 388 351 unconvVariance->save = true; 389 352 } 390 391 392 // Exposure image 393 pmFPA *unconvExpFPA = pmFPAConstruct(config->camera, config->cameraName); // FPA to contain the output 394 if (!unconvExpFPA) { 395 psError(psErrorCodeLast(), false, "Unable to construct an FPA from camera configuration."); 396 return false; 397 } 398 pmFPAfile *unconvExp = pmFPAfileDefineOutput(config, unconvExpFPA, "PPSTACK.UNCONV.EXP"); 399 psFree(unconvExpFPA); // Drop reference 400 if (!unconvExp) { 401 psError(psErrorCodeLast(), false, _("Unable to generate output file from PPSTACK.UNCONV.EXP")); 402 return false; 403 } 404 if (unconvExp->type != PM_FPA_FILE_IMAGE) { 405 psError(PPSTACK_ERR_CONFIG, true, "PPSTACK.UNCONV.EXP is not of type IMAGE"); 406 return false; 407 } 408 unconvExp->save = true; 409 410 if (!pmFPAAddSourceFromFormat(unconvExpFPA, "Stack", unconvExp->format)) { 411 psError(psErrorCodeLast(), false, "Unable to generate output FPA."); 412 return false; 413 } 414 415 // Output mask 416 pmFPAfile *unconvExpNum = pmFPAfileDefineOutput(config, unconvExp->fpa, "PPSTACK.UNCONV.EXPNUM"); 417 if (!unconvExpNum) { 418 psError(psErrorCodeLast(), false, _("Unable to generate output file from PPSTACK.UNCONV.MASK")); 419 return false; 420 } 421 if (unconvExpNum->type != PM_FPA_FILE_MASK) { 422 psError(PPSTACK_ERR_CONFIG, true, "PPSTACK.UNCONV.EXPNUM is not of type MASK"); 423 return false; 424 } 425 unconvExpNum->save = true; 426 353 #endif 427 354 428 355 // Output JPEGs
Note:
See TracChangeset
for help on using the changeset viewer.
