Changeset 26076 for trunk/ppStack/src/ppStackCamera.c
- Timestamp:
- Nov 9, 2009, 2:53:12 PM (17 years ago)
- Location:
- trunk/ppStack
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/ppStackCamera.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/czw_branch/cleanup/ppStack merged eligible /branches/eam_branches/20090522/ppStack merged eligible /branches/eam_branches/20090715/ppStack merged eligible /branches/eam_branches/20090820/ppStack merged eligible /branches/pap/ppStack merged eligible /branches/pap_mops/ppStack 25137-25255
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/ppStack/src/ppStackCamera.c
r25519 r26076 233 233 234 234 // Output image 235 pmFPA * fpa= pmFPAConstruct(config->camera, config->cameraName); // FPA to contain the output236 if (! fpa) {235 pmFPA *outFPA = pmFPAConstruct(config->camera, config->cameraName); // FPA to contain the output 236 if (!outFPA) { 237 237 psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to construct an FPA from camera configuration."); 238 238 return false; 239 239 } 240 pmFPAfile *output = pmFPAfileDefineOutput(config, fpa, "PPSTACK.OUTPUT");241 psFree( fpa); // Drop reference240 pmFPAfile *output = pmFPAfileDefineOutput(config, outFPA, "PPSTACK.OUTPUT"); 241 psFree(outFPA); // Drop reference 242 242 if (!output) { 243 243 psError(PS_ERR_IO, false, _("Unable to generate output file from PPSTACK.OUTPUT")); … … 250 250 output->save = true; 251 251 252 if (!pmFPAAddSourceFromFormat( fpa, "Stack", output->format)) {252 if (!pmFPAAddSourceFromFormat(outFPA, "Stack", output->format)) { 253 253 psError(PS_ERR_UNKNOWN, false, "Unable to generate output FPA."); 254 psFree(fpa);255 254 return false; 256 255 } … … 294 293 targetPSF->save = true; 295 294 } 295 296 #if 1 297 // Unconvolved stack 298 pmFPA *unconvFPA = pmFPAConstruct(config->camera, config->cameraName); // FPA to contain unconvolved output 299 if (!unconvFPA) { 300 psError(PS_ERR_UNEXPECTED_NULL, false, "Unable to construct an FPA from camera configuration."); 301 return false; 302 } 303 pmFPAfile *unConv = pmFPAfileDefineOutput(config, unconvFPA, "PPSTACK.UNCONV"); 304 psFree(unconvFPA); // Drop reference 305 if (!unConv) { 306 psError(PS_ERR_IO, false, _("Unable to generate output file from PPSTACK.UNCONV")); 307 return false; 308 } 309 if (unConv->type != PM_FPA_FILE_IMAGE) { 310 psError(PS_ERR_IO, true, "PPSTACK.UNCONV is not of type IMAGE"); 311 return false; 312 } 313 unConv->save = true; 314 315 if (!pmFPAAddSourceFromFormat(unconvFPA, "Stack", unConv->format)) { 316 psError(PS_ERR_UNKNOWN, false, "Unable to generate output FPA."); 317 return false; 318 } 319 320 // Unconvolved mask 321 pmFPAfile *unconvMask = pmFPAfileDefineOutput(config, unconvFPA, "PPSTACK.UNCONV.MASK"); 322 if (!unconvMask) { 323 psError(PS_ERR_IO, false, _("Unable to generate output file from PPSTACK.UNCONV.MASK")); 324 return false; 325 } 326 if (unconvMask->type != PM_FPA_FILE_MASK) { 327 psError(PS_ERR_IO, true, "PPSTACK.UNCONV.MASK is not of type MASK"); 328 return false; 329 } 330 unconvMask->save = true; 331 332 // Unconvolved variance 333 if (haveVariances) { 334 pmFPAfile *unconvVariance = pmFPAfileDefineOutput(config, unconvFPA, "PPSTACK.UNCONV.VARIANCE"); 335 if (!unconvVariance) { 336 psError(PS_ERR_IO, false, _("Unable to generate output file from PPSTACK.UNCONV.VARIANCE")); 337 return false; 338 } 339 if (unconvVariance->type != PM_FPA_FILE_VARIANCE) { 340 psError(PS_ERR_IO, true, "PPSTACK.UNCONV.VARIANCE is not of type VARIANCE"); 341 return false; 342 } 343 unconvVariance->save = true; 344 } 345 #endif 296 346 297 347 // Output JPEGs
Note:
See TracChangeset
for help on using the changeset viewer.
