IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7625


Ignore:
Timestamp:
Jun 21, 2006, 1:25:17 PM (20 years ago)
Author:
Paul Price
Message:

Make output image that is just the right size.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAMosaic.c

    r7618 r7625  
    447447    // Set up the image
    448448    // Since both upper and lower values are inclusive, we need to add one to the size
    449     float xSize = (float)(xMax + 1) / (float)xBinTarget;
     449    float xSize = (float)(xMax - xMin + 1) / (float)xBinTarget;
    450450    if (xSize - (int)xSize > 0) {
    451451        xSize += 1;
    452452    }
    453     float ySize = (float)(yMax + 1) / (float)yBinTarget;
     453    float ySize = (float)(yMax - yMin + 1) / (float)yBinTarget;
    454454    if (ySize - (int)ySize > 0) {
    455455        ySize += 1;
Note: See TracChangeset for help on using the changeset viewer.