TuttleOFX  1
terry::sampler Namespace Reference

Namespaces

namespace  details

Data Structures

struct  bc_sampler
struct  cubic_sampler
struct  bicubic_sampler
struct  catrom_sampler
struct  keys_sampler
struct  simon_sampler
struct  rifman_sampler
struct  mitchell_sampler
struct  parzen_sampler
struct  bilinear_sampler
struct  gaussian_sampler
struct  lanczos_sampler
struct  lanczos3_sampler
struct  lanczos4_sampler
struct  lanczos6_sampler
struct  lanczos12_sampler
struct  nearest_neighbor_sampler

Enumerations

enum  EParamFilter {
  eParamFilterNearest = 0, eParamFilterBilinear, eParamFilterBC, eParamFilterBicubic,
  eParamFilterCatrom, eParamFilterKeys, eParamFilterSimon, eParamFilterRifman,
  eParamFilterMitchell, eParamFilterParzen, eParamFilterLanczos, eParamFilterLanczos3,
  eParamFilterLanczos4, eParamFilterLanczos6, eParamFilterLanczos12, eParamFilterGaussian
}
enum  EParamFilterOutOfImage { eParamFilterOutBlack = 0, eParamFilterOutTransparency, eParamFilterOutCopy, eParamFilterOutMirror }

Functions

template<typename Sampler , typename DstP , typename SrcView , typename F >
bool sample (Sampler &sampler, const SrcView &src, const point2< F > &p, DstP &result, const EParamFilterOutOfImage outOfImageProcess)
template<typename Sampler , typename SrcView , typename DstView , typename MapFn , typename Progress >
void resample_pixels_progress (const SrcView &src_view, const DstView &dst_view, const MapFn &dst_to_src, const terry::Rect< std::ssize_t > &procWindow, const EParamFilterOutOfImage &outOfImageProcess, Progress &p, Sampler sampler=Sampler())
 Set each pixel in the destination view as the result of a sampling function over the transformed coordinates of the source viewThe provided implementation works for 2D image views only.
 BOOST_STATIC_ASSERT (boost::is_floating_point< RESAMPLING_CORE_TYPE >::value)

Enumeration Type Documentation

Enumerator:
eParamFilterNearest 
eParamFilterBilinear 
eParamFilterBC 
eParamFilterBicubic 
eParamFilterCatrom 
eParamFilterKeys 
eParamFilterSimon 
eParamFilterRifman 
eParamFilterMitchell 
eParamFilterParzen 
eParamFilterLanczos 
eParamFilterLanczos3 
eParamFilterLanczos4 
eParamFilterLanczos6 
eParamFilterLanczos12 
eParamFilterGaussian 

Definition at line 17 of file sampler.hpp.

Enumerator:
eParamFilterOutBlack 
eParamFilterOutTransparency 
eParamFilterOutCopy 
eParamFilterOutMirror 

Definition at line 37 of file sampler.hpp.


Function Documentation

terry::sampler::BOOST_STATIC_ASSERT ( boost::is_floating_point< RESAMPLING_CORE_TYPE >::value  )
template<typename Sampler , typename SrcView , typename DstView , typename MapFn , typename Progress >
void terry::sampler::resample_pixels_progress ( const SrcView &  src_view,
const DstView &  dst_view,
const MapFn &  dst_to_src,
const terry::Rect< std::ssize_t > &  procWindow,
const EParamFilterOutOfImage &  outOfImageProcess,
Progress &  p,
Sampler  sampler = Sampler() 
)

Set each pixel in the destination view as the result of a sampling function over the transformed coordinates of the source viewThe provided implementation works for 2D image views only.

Definition at line 27 of file resample_progress.hpp.

References boost::gil::color_convert(), sample(), terry::Rect< T >::size(), terry::transform(), terry::Rect< T >::x1, terry::Rect< T >::x2, terry::Rect< T >::y1, and terry::Rect< T >::y2.

Referenced by tuttle::plugin::lens::LensDistortProcess< View >::lensDistort(), and tuttle::plugin::resize::ResizeProcess< View >::multiThreadProcessImages().

Here is the call graph for this function:

template<typename Sampler , typename DstP , typename SrcView , typename F >
bool terry::sampler::sample ( Sampler &  sampler,
const SrcView &  src,
const point2< F > &  p,
DstP &  result,
const EParamFilterOutOfImage  outOfImageProcess 
)