mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-06-04 11:25:44 +08:00
16 lines
377 B
Markdown
16 lines
377 B
Markdown
|
|
## Prediction Scheme Transform
|
|
|
|
### ComputeOriginalValue()
|
|
|
|
~~~~~
|
|
ComputeOriginalValue(const DataTypeT *predicted_vals,
|
|
const CorrTypeT *corr_vals,
|
|
DataTypeT *out_original_vals, int val_id) {
|
|
for (i = 0; i < num_components_; ++i) {
|
|
out_original_vals[i] = predicted_vals[i] + corr_vals[val_id + i];
|
|
}
|
|
}
|
|
~~~~~
|
|
{:.draco-syntax }
|