Changeset 20420
- Timestamp:
- Oct 27, 2008, 2:19:42 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/imcombine/pmStackReject.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmStackReject.c
r19482 r20420 38 38 xMin + size + 1, yMin + size + 1); // Polynomial 39 39 int box = p_pmSubtractionBadRadius(NULL, kernels, polyValues, false, poorFrac); // Radius of bad box 40 psTrace("psModules.imcombine", 10, "Growing by %d", box); 40 41 psFree(polyValues); 41 42 … … 69 70 } 70 71 psFree(convolved); 71 } 72 } else { 73 // Just copy over 74 int numBytes = (xMax - xMin) * PSELEMTYPE_SIZEOF(PS_TYPE_MASK); // Number of bytes to copy 75 for (int yTarget = yMin; yTarget < yMax; yTarget++) { 76 memcpy(&target->data.PS_TYPE_MASK_DATA[yTarget][xMin], 77 &source->data.PS_TYPE_MASK_DATA[yTarget][xMin], numBytes); 78 } 79 } 80 72 81 return true; 73 82 } … … 230 239 } 231 240 } 241 psTrace("psModules.imcombine", 7, "Found %ld bad pixels", bad->n); 232 242 233 243 // Now, grow the mask to include everything that touches a bad pixel in the convolution … … 274 284 psFree(source); 275 285 psFree(target); 276 return false;286 return NULL; 277 287 } 278 288 psFree(job); … … 307 317 psFree(source); 308 318 bad = psPixelsFromMask(bad, target, PM_STACK_MASK_ALL); 319 psTrace("psModules.imcombine", 7, "Total %ld bad pixels", bad->n); 309 320 310 321 return bad;
Note:
See TracChangeset
for help on using the changeset viewer.
