18 #ifndef PIC_IMAGE_SAMPLERS_IMAGE_SAMPLER_CATMULL_ROM_HPP 19 #define PIC_IMAGE_SAMPLERS_IMAGE_SAMPLER_CATMULL_ROM_HPP 21 #include "../image_samplers/image_sampler.hpp" 60 for(
int k = 0; k < img->
channels; k++) {
67 for(
int j = -1; j < 3; j++) {
71 for(
int i = -1; i < 3; i++) {
77 for(
int k = 0; k < img->channels; k++) {
78 vOut[k] += img->
data[ind + k] * rx;
ImageSamplerCatmullRom()
Definition: image_sampler_catmull_rom.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 ImageSamplerCatmullRom class.
Definition: image_sampler_catmull_rom.hpp:28
The ImageSampler class.
Definition: image_sampler.hpp:29
float CatmullRom(float x)
CatmullRom.
Definition: image_sampler.hpp:150
void SampleImage(Image *img, float x, float y, float *vOut)
SampleImage samples an image in uniform coordiantes.
Definition: image_sampler_catmull_rom.hpp:40
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
#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