8 #ifndef BOOST_GIL_IMAGE_PROCESSING_NUMERIC_HPP 9 #define BOOST_GIL_IMAGE_PROCESSING_NUMERIC_HPP 11 #include <boost/gil/detail/math.hpp> 14 namespace boost {
namespace gil {
27 inline double normalized_sinc(
double x)
29 return std::sin(x * boost::gil::pi) / (x * boost::gil::pi);
39 inline double lanczos(
double x, std::ptrdiff_t a)
46 return normalized_sinc(x) / normalized_sinc(x / static_cast<double>(a));
Definition: algorithm.hpp:30
double lanczos(double x, std::ptrdiff_t a)
Lanczos response at point xLanczos response is defined as: x == 0: 1 -a < x && x < a: 0 otherwise: no...
Definition: numeric.hpp:39