LibGfx: Make should_wrap flag default as true on convolution filters

Currently the default is false, but this is not the best strategy
for most filters producing artifacts on the borders, and wrap-around
option ends up being better, producing less artifacts.
This commit is contained in:
luiz 2022-09-13 19:54:54 -03:00 committed by Sam Atkins
parent 02b9461714
commit d77ced8943
Notes: sideshowbarker 2024-07-17 06:19:58 +09:00

View file

@ -34,7 +34,7 @@ class GenericConvolutionFilter : public Filter {
public:
class Parameters : public Filter::Parameters {
public:
Parameters(Gfx::Matrix<N, float> const& kernel, bool should_wrap = false)
Parameters(Gfx::Matrix<N, float> const& kernel, bool should_wrap = true)
: m_kernel(kernel)
, m_should_wrap(should_wrap)