IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3434


Ignore:
Timestamp:
Mar 16, 2005, 10:42:08 AM (21 years ago)
Author:
Paul Price
Message:

Problem with upper right corner led to incorrect size.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/stac/src/stacSize.c

    r3375 r3434  
    2525        psPlaneTransform *map = maps->data[i]; // The map
    2626
     27        psTrace("stac.size", 4, "Image %d:\n", i);
     28
    2729        // Lower left corner
    28         inCoord->x = 0;
    29         inCoord->y = 0;
     30        inCoord->x = 0.0;
     31        inCoord->y = 0.0;
    3032        (void)psPlaneTransformApply(outCoord, map, inCoord);
    3133        if (outCoord->x < xMin) {
     
    3941            yMax = outCoord->y;
    4042        }
     43        psTrace("stac.size", 4, "Lower left: %f %f\n", outCoord->x, outCoord->y);
    4144
    4245        // Lower right corner
     
    5356            yMax = outCoord->y;
    5457        }
     58        psTrace("stac.size", 4, "Lower right: %f %f\n", outCoord->x, outCoord->y);
    5559
    5660        // Upper right corner
     61        inCoord->x = 0.0;
    5762        inCoord->y = image->numRows;
    5863        (void)psPlaneTransformApply(outCoord, map, inCoord);
     
    6772            yMax = outCoord->y;
    6873        }
     74        psTrace("stac.size", 4, "Upper right: %f %f\n", outCoord->x, outCoord->y);
    6975
    7076        // Upper left corner
     
    8187            yMax = outCoord->y;
    8288        }
     89        psTrace("stac.size", 4, "Upper left: %f %f\n", outCoord->x, outCoord->y);
    8390    }
    8491
Note: See TracChangeset for help on using the changeset viewer.