Changeset 3666 for trunk/stac/src/stacSize.c
- Timestamp:
- Apr 5, 2005, 11:51:26 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/stac/src/stacSize.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/stac/src/stacSize.c
r3610 r3666 4 4 #include "stac.h" 5 5 6 bool stacSize(stacConfig *config, // Configuration, containing the output size 6 bool stacSize(int *outnx, int *outny, // Size of output image (returned) 7 float *xMapDiff, float *yMapDiff, // Difference applied to maps 7 8 const psArray *images, // Input images 8 9 psArray *maps // Transformation maps … … 91 92 92 93 // Tweak the maps to account for the offset 93 config->xMapDiff = floor(xMin);94 config->yMapDiff = floor(yMin);94 *xMapDiff = floor(xMin); 95 *yMapDiff = floor(yMin); 95 96 for (int i = 0; i < nImages; i++) { 96 97 psPlaneTransform *map = maps->data[i]; // The map of interest … … 99 100 } 100 101 101 config->outnx = (int)(xMax + 0.5) - (int)xMin;102 config->outny = (int)(yMax + 0.5) - (int)yMin;102 *outnx = (int)(xMax + 0.5) - (int)xMin; 103 *outny = (int)(yMax + 0.5) - (int)yMin; 103 104 104 psTrace("stac.size", 1, "Output size is to be %dx%d\n", config->outnx, config->outny);105 psTrace("stac.size", 1, "Output size is to be %dx%d\n", *outnx, *outny); 105 106 106 107 psFree(inCoord);
Note:
See TracChangeset
for help on using the changeset viewer.
