18 #ifndef PIC_IMAGE_SAMPLERS_IMAGE_SAMPLER_LANCZOS_HPP 19 #define PIC_IMAGE_SAMPLERS_IMAGE_SAMPLER_LANCZOS_HPP 21 #include "../image_samplers/image_sampler.hpp" 82 for(
int k = 0; k < img->
channels; k++) {
88 for(
int j = -
a_i + 1; j <=
a_i; j++) {
92 for(
int i = -
a_i + 1; i <=
a_i; i++) {
98 for(
int k = 0; k < img->channels; k++) {
99 vOut[k] += img->
data[ind + k] * rx;
float * data
data is the main buffer where pixel values are stored.
Definition: image.hpp:91
int channels
Definition: image.hpp:80
ImageSamplerLanczos(float a)
ImageSamplerLanczos.
Definition: image_sampler_lanczos.hpp:49
The ImageSampler class.
Definition: image_sampler.hpp:29
void SampleImage(Image *img, float x, float y, float *vOut)
SampleImage samples an image in uniform coordiantes.
Definition: image_sampler_lanczos.hpp:62
int a_i
Definition: image_sampler_lanczos.hpp:32
float Lanczos(float x, float a)
Lanczos.
Definition: image_sampler.hpp:172
float height1f
Definition: image.hpp:84
The Image class stores an image as buffer of float.
Definition: image.hpp:60
Definition: bilateral_separation.hpp:25
The ImageSamplerLanczos class.
Definition: image_sampler_lanczos.hpp:28
#define CLAMP(x, a)
Definition: math.hpp:77
ImageSamplerLanczos()
ImageSamplerLanczos.
Definition: image_sampler_lanczos.hpp:38
int width
Definition: image.hpp:80
int height
Definition: image.hpp:80
float width1f
Definition: image.hpp:84
float a
Definition: image_sampler_lanczos.hpp:31