Changeset 6887 for trunk/stac/src/stacScales.c
- Timestamp:
- Apr 18, 2006, 12:20:45 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/stac/src/stacScales.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/stac/src/stacScales.c
r5745 r6887 19 19 psVector *values = psVectorAlloc(numSamples + 1, PS_TYPE_F32); // Vector containing sub-sample 20 20 psVector *mask = psVectorAlloc(numSamples + 1, PS_TYPE_U8); // Mask for sample 21 values->n = numSamples + 1; 22 mask->n = numSamples + 1; 21 23 22 24 int offset = 0; // Offset from start of the row … … 84 86 } else { 85 87 scales = psVectorAlloc(images->n, PS_TYPE_F32); 88 scales->n = images->n; 86 89 *scalesPtr = scales; 87 90 } … … 93 96 } else { 94 97 offsets = psVectorAlloc(images->n, PS_TYPE_F32); 98 offsets->n = images->n; 95 99 *offsetsPtr = offsets; 96 100 } … … 122 126 // Transform the stellar positions to match the transformed reference frame 123 127 psArray *starCoordsTransformed = psArrayAlloc(starCoords->n); // Transformed positions 128 starCoordsTransformed->n = starCoords->n; 124 129 // Fix up difference between map and output frame 125 130 starMap->x->coeff[0][0] -= xMapDiff; … … 132 137 psArray *stars = psArrayAlloc(images->n); // Array of stellar photometry vectors 133 138 psArray *masks = psArrayAlloc(images->n); // Array of masks for stars 139 stars->n = images->n; 140 masks->n = images->n; 134 141 135 142 // Set scales relative to the first image … … 144 151 psVector *photometry = psVectorAlloc(starCoords->n, PS_TYPE_F32); // Photometry of the stars 145 152 psVector *mask = psVectorAlloc(starCoords->n, PS_TYPE_U8); // Mask for the photometry 153 photometry->n = starCoords->n; 154 mask->n = starCoords->n; 146 155 for (int j = 0; j < starCoordsTransformed->n; j++) { 147 156 psPlane *coords = starCoordsTransformed->data[j]; // The coordinates of the star
Note:
See TracChangeset
for help on using the changeset viewer.
