Changeset 10502 for trunk/ppImage/src/ppImageRebinReadout.c
- Timestamp:
- Dec 6, 2006, 10:28:19 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImageRebinReadout.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageRebinReadout.c
r8751 r10502 61 61 bool ppImageRebinReadout (pmReadout *output, pmReadout *input, pmFPAfile *outFile) 62 62 { 63 psF32 value; 64 psS32 nPix; 63 PS_ASSERT_PTR_NON_NULL(output, false); 64 PS_ASSERT_IMAGE_NON_NULL(output->image, false); 65 PS_ASSERT_PTR_NON_NULL(input, false); 66 PS_ASSERT_IMAGE_NON_NULL(input->image, false); 67 PS_ASSERT_PTR_NON_NULL(outFile, false); 65 68 66 69 // the binning process must not change the size of the output image... … … 78 81 for (int yOut = 0; yOut < output->image->numRows; yOut++) { 79 82 for (int xOut = 0; xOut < output->image->numCols; xOut++) { 80 value = 0;81 nPix = 0;83 float value = 0; 84 int nPix = 0; 82 85 for (int yIn = yOut * dY; (yIn < yOut * dY + dY) && (yIn < nY); yIn ++) { 83 86 for (int xIn = xOut * dX; (xIn < xOut * dX + dX) && (xIn < nX); xIn ++) {
Note:
See TracChangeset
for help on using the changeset viewer.
