95eee272fefa52d287e747cadb060e9e31240e40
Increasing the error tolerance from 1e-8 to 1e-7 guarantees convergence before reaching oscillatory behavior. Additionally, using double precision for all variables involved in the operation prevents truncation errors, ensuring numerical stability. Introducing a damping factor might fix oscillatory behavior but will come at the cost of much more iterations, which does not seem worth it considering that the suggested error tolerance of 1e-7 for the scale factor translates to, at most, an error tolerance of 1e-3 for the standard deviation in practice as can be seen by investigating the derivative of the variance as a function of the scale factor. Such an error will be almost impossible to notice in the context of blurring. Pull Request: https://projects.blender.org/blender/blender/pulls/136149
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
