Changeset 19710 for trunk/psModules/src/camera/pmFPABin.c
- Timestamp:
- Sep 23, 2008, 2:10:00 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPABin.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPABin.c
r19709 r19710 31 31 psImage *outImage = out->image = psImageRecycle(out->image, numColsOut, numRowsOut, PS_TYPE_F32); 32 32 33 int xLast = numColsIn - 1, yLast = numRowsIn - 1; // Last index 33 34 int yStart = psImageBinningGetFineY(binning, 0); // Starting input y for binning 34 35 for (int yOut = 0; yOut < numRowsOut; yOut++) { 35 36 int yStop = psImageBinningGetFineY(binning, yOut + 1); // Stopping input y for binning 37 yStop = PS_MIN(yStop, yLast); 36 38 int xStart = psImageBinningGetFineX(binning, 0); // Starting input x for binning 37 39 for (int xOut = 0; xOut < numColsOut; xOut++) { 38 40 int xStop = psImageBinningGetFineX(binning, xOut + 1); // Stopping input x for binning 41 xStop = PS_MIN(xStop, xLast); 39 42 40 43 float sum = 0.0; // Sum of pixels
Note:
See TracChangeset
for help on using the changeset viewer.
