mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:37:46 +00:00
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:
parent
02b9461714
commit
d77ced8943
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue