TuttleOFX
1
|
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) |
Definition at line 17 of file sampler.hpp.
eParamFilterOutBlack | |
eParamFilterOutTransparency | |
eParamFilterOutCopy | |
eParamFilterOutMirror |
Definition at line 37 of file sampler.hpp.
terry::sampler::BOOST_STATIC_ASSERT | ( | boost::is_floating_point< RESAMPLING_CORE_TYPE >::value | ) |
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().
bool terry::sampler::sample | ( | Sampler & | sampler, |
const SrcView & | src, | ||
const point2< F > & | p, | ||
DstP & | result, | ||
const EParamFilterOutOfImage | outOfImageProcess | ||
) |
Definition at line 254 of file details.hpp.
References boost::gil::color_convert(), eParamFilterOutBlack, eParamFilterOutCopy, eParamFilterOutMirror, eParamFilterOutTransparency, terry::sampler::details::getPixelsPointers(), and RESAMPLING_CORE_TYPE.
Referenced by terry::filter::motionvectors_resample_pixels(), terry::resample_pixels(), and resample_pixels_progress().