Changeset 9740 for trunk/stac/src/stacScales.c
- Timestamp:
- Oct 24, 2006, 2:27:29 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/stac/src/stacScales.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/stac/src/stacScales.c
r8783 r9740 23 23 psVector *values = psVectorAlloc(numSamples + 1, PS_TYPE_F32); // Vector containing sub-sample 24 24 psVector *mask = psVectorAlloc(numSamples + 1, PS_TYPE_U8); // Mask for sample 25 values->n = numSamples + 1;26 mask->n = numSamples + 1;27 25 28 26 int offset = 0; // Offset from start of the row … … 90 88 } else { 91 89 scales = psVectorAlloc(images->n, PS_TYPE_F32); 92 scales->n = images->n;93 90 *scalesPtr = scales; 94 91 } … … 100 97 } else { 101 98 offsets = psVectorAlloc(images->n, PS_TYPE_F32); 102 offsets->n = images->n;103 99 *offsetsPtr = offsets; 104 100 } … … 130 126 // Transform the stellar positions to match the transformed reference frame 131 127 psArray *starCoordsTransformed = psArrayAlloc(starCoords->n); // Transformed positions 132 starCoordsTransformed->n = starCoords->n;133 128 // Fix up difference between map and output frame 134 129 starMap->x->coeff[0][0] -= xMapDiff; … … 141 136 psArray *stars = psArrayAlloc(images->n); // Array of stellar photometry vectors 142 137 psArray *masks = psArrayAlloc(images->n); // Array of masks for stars 143 stars->n = images->n;144 masks->n = images->n;145 138 146 139 // Set scales relative to the first image … … 155 148 psVector *photometry = psVectorAlloc(starCoords->n, PS_TYPE_F32); // Photometry of the stars 156 149 psVector *mask = psVectorAlloc(starCoords->n, PS_TYPE_U8); // Mask for the photometry 157 photometry->n = starCoords->n;158 mask->n = starCoords->n;159 150 for (int j = 0; j < starCoordsTransformed->n; j++) { 160 151 psPlane *coords = starCoordsTransformed->data[j]; // The coordinates of the star
Note:
See TracChangeset
for help on using the changeset viewer.
