IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 5, 2005, 11:51:26 AM (21 years ago)
Author:
Paul Price
Message:

Removing stac-specific configuration out of functions so that I can use them in other programs. Program appears to work as it did before.

File:
1 edited

Legend:

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

    r3375 r3666  
    99
    1010psArray *stacInvertMaps(const psArray *maps, // Array of maps to invert
    11                         const stacConfig *config // Configuration
     11                        int outnx, int outny // Size of output image
    1212    )
    1313{
     
    4848        // Create grid of points
    4949        for (int yint = 0; yint < NUM_GRID; yint++) {
    50             inCoord->y = (float)(yint * config->outny) / (float)(NUM_GRID - 1);
     50            inCoord->y = (float)(yint * outny) / (float)(NUM_GRID - 1);
    5151            for (int xint = 0; xint < NUM_GRID; xint++) {
    52                 inCoord->x = (float)(xint * config->outnx) / (float)(NUM_GRID - 1);
     52                inCoord->x = (float)(xint * outnx) / (float)(NUM_GRID - 1);
    5353
    5454                (void)psPlaneTransformApply(outCoord, oldMap, inCoord);
Note: See TracChangeset for help on using the changeset viewer.