Changeset 6887 for trunk/stac/src/shift.c
- Timestamp:
- Apr 18, 2006, 12:20:45 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/stac/src/shift.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/stac/src/shift.c
r6771 r6887 126 126 psArray *maps = psArrayAlloc(1); // An array of one 127 127 psArray *masks = psArrayAlloc(1); // An array of one 128 images->n = maps->n = masks->n = 1; 128 129 images->data[0] = image; 129 130 maps->data[0] = map; … … 132 133 // Get size 133 134 if (outnx == 0 || outny == 0) { 134 stacSize(&outnx, &outny, NULL, NULL, images, maps); 135 psVector *xSize = psVectorAlloc(1, PS_TYPE_S32); // A vector of one 136 psVector *ySize = psVectorAlloc(1, PS_TYPE_S32); // A vector of one 137 xSize->n = 1; 138 ySize->n = 1; 139 xSize->data.S32[0] = image->numCols; 140 ySize->data.S32[0] = image->numRows; 141 stacSize(&outnx, &outny, NULL, NULL, xSize, ySize, maps); 142 psFree(xSize); 143 psFree(ySize); 135 144 } 136 145
Note:
See TracChangeset
for help on using the changeset viewer.
