- Timestamp:
- Jan 1, 2009, 7:13:00 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20081230/psModules/src/detrend/pmOverscan.c
r19846 r21079 67 67 psVector *reduced = psVectorAlloc(pixels->n, PS_TYPE_F32); // Overscan for each row 68 68 psVector *ordinate = psVectorAlloc(pixels->n, PS_TYPE_F32); // Ordinate 69 psVector *mask = psVectorAlloc(pixels->n, PS_TYPE_ U8); // Mask for fitting69 psVector *mask = psVectorAlloc(pixels->n, PS_TYPE_VECTOR_MASK); // Mask for fitting 70 70 71 71 for (int i = 0; i < pixels->n; i++) { 72 72 psVector *values = pixels->data[i]; // Vector with overscan values 73 73 if (values->n > 0) { 74 mask->data. U8[i] = 0;74 mask->data.PS_TYPE_VECTOR_MASK_DATA[i] = 0; 75 75 ordinate->data.F32[i] = 2.0*(float)i/(float)pixels->n - 1.0; // Scale to [-1,1] 76 76 psVectorStats(myStats, values, NULL, NULL, 0); … … 82 82 } else { 83 83 // We'll fit this one out 84 mask->data. U8[i] = 1;84 mask->data.PS_TYPE_VECTOR_MASK_DATA[i] = 1; 85 85 } 86 86 }
Note:
See TracChangeset
for help on using the changeset viewer.
