Changeset 34450
- Timestamp:
- Sep 20, 2012, 1:34:19 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20120906/ppSkycell/src/ppSkycellLoop.c
r34449 r34450 198 198 psImage *image1 = psImageAlloc(numCols1, numRows1, PS_TYPE_F32); // Binned image 199 199 psImage *image2 = psImageAlloc(numCols2, numRows2, PS_TYPE_F32); // Binned image 200 psImageInit(image1, 0); 201 psImageInit(image2, 0); 202 200 psImageInit(image1,NAN); 201 psImageInit(image2,NAN); 202 for (int y = 0; y < numRows1; y++) { 203 for (int x = 0; x < numCols1; x++) { 204 image1->data.F32[y][x] = NAN; 205 } 206 } 207 203 208 psImage *mask1 = NULL, *mask2 = NULL; // Binned masks 204 209 if (data->masksName) { … … 215 220 continue; 216 221 } 217 222 fprintf(stderr,"ISITNAN? %g\n",image1->data.F32[0][0]); 218 223 pmFPAfileActivateSingle(data->config->files, true, "PPSKYCELL.IMAGE", j); 219 224 if (data->masksName) { … … 267 272 // XXX Completely neglecting rotations 268 273 // The skycells are divided up neatly with them all having the same orientation 269 psImageOverlaySection(image1, bin1RO->image, xOffset1, yOffset1, "=");270 psImageOverlaySection(image2, bin2RO->image, xOffset2, yOffset2, "=");274 psImageOverlaySection(image1, bin1RO->image, xOffset1, yOffset1, "="); 275 psImageOverlaySection(image2, bin2RO->image, xOffset2, yOffset2, "="); 271 276 if (data->masksName) { 272 277 psImageOverlaySection(mask1, bin1RO->mask, xOffset1, yOffset1, "=");
Note:
See TracChangeset
for help on using the changeset viewer.
