Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Make{Low, High}FreqColorDiff{Dx, Dy}() functions incorrectly initialize the lut array #29

Open
DominikWitczakAMD opened this issue Jun 27, 2017 · 0 comments

Comments

@DominikWitczakAMD
Copy link

The three functions declare the lut table using std::array<>, but do not assign 0 to the zeroth element of the array. I'm not a C++11 spec expert but under Visual Studio 2017 this leads to guard values /trash being assigned to lut[0]. This has a nasty effect on mask computations, as it now gets filled with INF values which ultimately leads to a division by zero exception.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant