Use Horner's method in SarCalibration
- Jul 28, 2021
-
-
Cédric Traizet authored
TEST: update baselines for calibration test (numerical differences when using doubles instead of floats)
-
-
-
Before fully using Horner's method, let improve the precision. Here, `point` can be an array of `float`s, we divide its components with 2 `double`s. And we do computations with other `double`s. Mixing `float`s and `double`s in cocomputations will trigger conversions and prevent the compiler from correctly vectorizing the operations. Hence, it's better to cache `point[0|1] / W|H` in two `double`s but now `raTvSarParametricMapFunctionToImageFilter` fails...
-