PICCANTE  0.4
The hottest HDR imaging library!
Public Member Functions | Protected Attributes | List of all members
pic::pic::ImageSampler Class Reference

The ImageSampler class. More...

#include <display.hpp>

Inheritance diagram for pic::pic::ImageSampler:
pic::ImageSamplerBicubic pic::ImageSamplerBilinear pic::ImageSamplerBSplines pic::ImageSamplerCatmullRom pic::ImageSamplerGaussian pic::ImageSamplerLanczos pic::ImageSamplerNearest pic::pic::ImageSamplerBicubic pic::pic::ImageSamplerBilinear pic::pic::ImageSamplerNearest

Public Member Functions

 ImageSampler ()
 ImageSampler. More...
 
 ~ImageSampler ()
 
void SetDirection (unsigned int direction)
 
virtual void SampleImage (Image *img, float x, float y, float *vOut)
 SampleImage samples an image in uniform coordiantes. More...
 
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]. More...
 
virtual void SampleImage (Image *img, float x, float y, float t, float *vOut)
 SampleImage samples an image in uniform coordiantes. More...
 

Protected Attributes

int dirs [3]
 

Detailed Description

The ImageSampler class.

Constructor & Destructor Documentation

◆ ImageSampler()

pic::pic::ImageSampler::ImageSampler ( )
inline

◆ ~ImageSampler()

pic::pic::ImageSampler::~ImageSampler ( )
inline

Member Function Documentation

◆ SampleImage() [1/2]

virtual void pic::pic::ImageSampler::SampleImage ( Image img,
float  x,
float  y,
float *  vOut 
)
inlinevirtual

SampleImage samples an image in uniform coordiantes.

Parameters
img
x
y
vOut

Reimplemented in pic::pic::ImageSamplerBicubic, pic::pic::ImageSamplerNearest, and pic::pic::ImageSamplerBilinear.

◆ SampleImage() [2/2]

virtual void pic::pic::ImageSampler::SampleImage ( Image img,
float  x,
float  y,
float  t,
float *  vOut 
)
inlinevirtual

SampleImage samples an image in uniform coordiantes.

Parameters
img
x
y
t
vOut

Reimplemented in pic::pic::ImageSamplerBilinear, and pic::pic::ImageSamplerNearest.

◆ SampleImageUC()

virtual void pic::pic::ImageSampler::SampleImageUC ( Image img,
float  x,
float  y,
float *  vOut 
)
inlinevirtual

SampleImageUC samples an image in unnormalized coordinates [0,width-1]x[0,height-1].

Parameters
img
x
y
vOut

Reimplemented in pic::pic::ImageSamplerNearest, and pic::pic::ImageSamplerBilinear.

◆ SetDirection()

void pic::pic::ImageSampler::SetDirection ( unsigned int  direction)
inline

Member Data Documentation

◆ dirs

int pic::pic::ImageSampler::dirs[3]
protected

The documentation for this class was generated from the following file: