18 #ifndef PIC_IMAGE_SAMPLERS_IMAGE_SAMPLER_BICUBIC_HPP 19 #define PIC_IMAGE_SAMPLERS_IMAGE_SAMPLER_BICUBIC_HPP 21 #include "../image_samplers/image_sampler.hpp" 63 for(
int k = 0; k < img->
channels; k++) {
70 for(
int j = -1; j < 3; j++) {
74 for(
int i = -1; i < 3; i++) {
80 for(
int k = 0; k < img->channels; k++) {
81 vOut[k] += img->
data[ind + k] * rx;
ImageSamplerBicubic()
Definition: image_sampler_bicubic.hpp:31
float * data
data is the main buffer where pixel values are stored.
Definition: image.hpp:91
int channels
Definition: image.hpp:80
The ImageSamplerBicubic class.
Definition: image_sampler_bicubic.hpp:28
The ImageSampler class.
Definition: image_sampler.hpp:29
float Bicubic(float x)
Bicubic.
Definition: image_sampler.hpp:129
float height1f
Definition: image.hpp:84
void SampleImage(Image *img, float x, float y, float *vOut)
SampleImage samples an image in uniform coordiantes.
Definition: image_sampler_bicubic.hpp:43
The Image class stores an image as buffer of float.
Definition: image.hpp:60
Definition: bilateral_separation.hpp:25
#define CLAMP(x, a)
Definition: math.hpp:77
int width
Definition: image.hpp:80
int height
Definition: image.hpp:80
float width1f
Definition: image.hpp:84