18 #ifndef PIC_IMAGE_SAMPLERS_IMAGE_SAMPLER_HPP 19 #define PIC_IMAGE_SAMPLERS_IMAGE_SAMPLER_HPP 21 #include "../image.hpp" 22 #include "../util/image_sampler.hpp" 45 dirs[ direction % 3] = 1;
46 dirs[(direction + 1) % 3] = 0;
47 dirs[(direction + 2) % 3] = 0;
ImageSampler()
ImageSampler.
Definition: image_sampler.hpp:39
The ImageSampler class.
Definition: image_sampler.hpp:29
virtual void SampleImageUC(Image *img, float x, float y, float *vOut)
SampleImageUC samples an image in unnormalized coordinates [0,width-1]x[0,height-1].
Definition: image_sampler.hpp:66
~ImageSampler()
Definition: image_sampler.hpp:41
int dirs[3]
Definition: image_sampler.hpp:32
virtual void SampleImage(Image *img, float x, float y, float t, float *vOut)
SampleImage samples an image in uniform coordiantes.
Definition: image_sampler.hpp:76
The Image class stores an image as buffer of float.
Definition: image.hpp:60
Definition: bilateral_separation.hpp:25
virtual void SampleImage(Image *img, float x, float y, float *vOut)
SampleImage samples an image in uniform coordiantes.
Definition: image_sampler.hpp:57
void SetDirection(unsigned int direction)
Definition: image_sampler.hpp:43