mirror of
https://github.com/boostorg/gil.git
synced 2026-01-24 05:52:13 +00:00
* Implement generation of simple kernels This commits implements mean and Gaussian kernel generators, roughly documents them, and has tests. But tests for Gaussian have accuracy problem * Use difference for testing Gaussian This commit applies percentage based difference check on generation of Gaussian kernels, as exact values are dependant on platform. The error margin is set to 5% in this commit * Remove debugging code In simple_kernels.cpp, there was some debugging code, mostly streams related stuff and commented out code, which is now removed. * Address review comments This commit adds inline to kernel generator functions, uses std::ptrdiff_t instead of long int, resolves some conversion warnings and does small cosmetic changes * Remove useless iostream include There was stray include from debugging code, now removed * Use \code and \endcode for formula This commit applies formatting to formula of normalized mean * Change are_equal to is_equal Change a function name in simple_kernels.cpp test * Remove redundant function In simple_kernels.cpp test there was a function that was not used at all, now removed * Cosmetic changes Mostly opening brackets moved