IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 6, 2006, 10:28:19 AM (19 years ago)
Author:
Paul Price
Message:

Adding assertions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImageRebinReadout.c

    r8751 r10502  
    6161bool ppImageRebinReadout (pmReadout *output, pmReadout *input, pmFPAfile *outFile)
    6262{
    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);
    6568
    6669    // the binning process must not change the size of the output image...
     
    7881    for (int yOut = 0; yOut < output->image->numRows; yOut++) {
    7982        for (int xOut = 0; xOut < output->image->numCols; xOut++) {
    80             value = 0;
    81             nPix = 0;
     83            float value = 0;
     84            int nPix = 0;
    8285            for (int yIn = yOut * dY; (yIn < yOut * dY + dY) && (yIn < nY); yIn ++) {
    8386                for (int xIn = xOut * dX; (xIn < xOut * dX + dX) && (xIn < nX); xIn ++) {
Note: See TracChangeset for help on using the changeset viewer.