- Timestamp:
- Jun 1, 2010, 3:57:49 PM (16 years ago)
- Location:
- trunk/ppStack/src
- Files:
-
- 3 edited
-
ppStackConvolve.c (modified) (2 diffs)
-
ppStackLoop.c (modified) (3 diffs)
-
ppStackReject.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src/ppStackConvolve.c
r27218 r28182 235 235 236 236 if (numGood == 0) { 237 psError(PPSTACK_ERR_REJECTED, false, "No good images to combine."); 237 options->quality = PPSTACK_ERR_REJECTED; 238 psErrorStackPrint(stderr, "No good images survived convolution stage."); 239 psErrorClear(); 240 psWarning("No good images survived convolution stage."); 238 241 psFree(fpaList); 239 242 psFree(cellList); 240 return false;243 return true; 241 244 } 242 245 … … 324 327 325 328 if (numGood == 0) { 326 psError(PPSTACK_ERR_REJECTED, false, "No good images to combine."); 327 return false; 329 options->quality = PPSTACK_ERR_REJECTED; 330 psErrorStackPrint(stderr, "No good images survived convolution stage."); 331 psErrorClear(); 332 psWarning("No good images survived convolution stage."); 333 return true; 328 334 } 329 335 -
trunk/ppStack/src/ppStackLoop.c
r27427 r28182 91 91 ppStackMemDump("convolve"); 92 92 93 if (options->quality) { 94 // Can't do anything else 95 return true; 96 } 97 93 98 // Ensure sufficient inputs 94 99 { … … 97 102 bool safe = psMetadataLookupBool(NULL, recipe, "SAFE"); // Be safe when combining 98 103 if (safe && numGood <= 1) { 99 psError(PPSTACK_ERR_REJECTED, true, "Insufficient inputs for combination with safety on"); 100 return false; 104 options->quality = PPSTACK_ERR_REJECTED; 105 psErrorStackPrint(stderr, "Insufficient inputs for combination with safety on"); 106 psErrorClear(); 107 psWarning("Insufficient inputs for combination with safety on"); 108 return true; 101 109 } 102 110 } … … 147 155 int numGood = stackSummary(options, "final combination"); 148 156 if (numGood <= 0) { 149 psError(PPSTACK_ERR_REJECTED, true, "Insufficient inputs for combination"); 150 return false; 157 options->quality = PPSTACK_ERR_REJECTED; 158 psErrorStackPrint(stderr, "Insufficient inputs survived rejection stage"); 159 psErrorClear(); 160 psWarning("Insufficient inputs survived rejection stage"); 161 return true; 151 162 } 152 163 } -
trunk/ppStack/src/ppStackReject.c
r27427 r28182 166 166 psFree(options->inspect); options->inspect = NULL; 167 167 168 if (numRejected >= num) {169 psError(PPSTACK_ERR_REJECTED, true, "All inputs completely rejected; unable to proceed.");170 return false;171 }172 173 168 if (options->stats) { 174 169 psMetadataAddS32(options->stats, PS_LIST_TAIL, "REJECT_IMAGES", 0,
Note:
See TracChangeset
for help on using the changeset viewer.
