TuttleOFX  1
terry::sampler::details Namespace Reference

Data Structures

struct  add_dst_mul_src_channel
struct  add_dst_mul_src
struct  process1Dresampling

Functions

template<typename xy_locator , typename SrcP >
void getPixelsPointers (const xy_locator &loc, const point2< std::ptrdiff_t > &p0, const int &windowWidth, const int &imageWidth, const EParamFilterOutOfImage &outOfImageProcess, std::vector< SrcP > &src)
 Get pixels around a particular position.

Function Documentation

template<typename xy_locator , typename SrcP >
void terry::sampler::details::getPixelsPointers ( const xy_locator &  loc,
const point2< std::ptrdiff_t > &  p0,
const int &  windowWidth,
const int &  imageWidth,
const EParamFilterOutOfImage &  outOfImageProcess,
std::vector< SrcP > &  src 
)

Get pixels around a particular position.

Parameters:
[in]loclocator which points to a pixel
[in]pt0x,y position of loc
[in]windowWidththe region inside which we search our pixels
[out]ptNpixel value to retrieve

it's to use with (B,C) filter number of points need to be even

----------------- | A | B | C | D | ----------------- ^..... loc is pointing to D point

Definition at line 64 of file details.hpp.

References terry::sampler::eParamFilterOutBlack, terry::sampler::eParamFilterOutCopy, terry::sampler::eParamFilterOutMirror, and terry::sampler::eParamFilterOutTransparency.

Referenced by terry::sampler::sample().