Changeset 3667 for trunk/stac/src/stacRejection.c
- Timestamp:
- Apr 5, 2005, 12:13:28 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/stac/src/stacRejection.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/stac/src/stacRejection.c
r3666 r3667 83 83 #ifdef TESTING 84 84 psImage *rejmap = psImageAlloc(nxInput, nyInput, PS_TYPE_F32); // The rejections in the source frame 85 psImage *grad = psImageAlloc(nxInput, nyInput, PS_TYPE_F32); // The gradient image85 psImage *gradient = psImageAlloc(nxInput, nyInput, PS_TYPE_F32); // The gradient image 86 86 #endif 87 87 psImage *reject = rejected->data[i]; // Pull out the mask in the output frame … … 147 147 148 148 #ifdef TESTING 149 grad ->data.F32[y][x] = stacGradient(inputs->data[i], x, y) / meanGrads;149 gradient->data.F32[y][x] = stacGradient(inputs->data[i], x, y) / meanGrads; 150 150 #endif 151 151 … … 153 153 mask->data.U8[y][x] = 1; 154 154 nBad++; 155 155 156 #ifdef CRFLUX 156 157 fprintf(crs, "%d %d --> %f %f %f\n", x, y, … … 158 159 stacGradient(inputs->data[i], x, y)); 159 160 #endif 161 160 162 } else { 161 163 mask->data.U8[y][x] = 0; … … 200 202 } 201 203 psTrace("stac", 1, "Rejection map written to %s\n", rejmapName); 202 if (!psFitsWriteImage(gradFile, NULL, grad , 0, NULL)) {204 if (!psFitsWriteImage(gradFile, NULL, gradient, 0, NULL)) { 203 205 psErrorStackPrint(stderr, "Unable to write image: %s\n", gradName); 204 206 } … … 208 210 psFree(gradFile); 209 211 psFree(rejmap); 210 psFree(grad );212 psFree(gradient); 211 213 #endif 212 214
Note:
See TracChangeset
for help on using the changeset viewer.
