#include <bc.hpp>
Public Member Functions |
| bc_sampler () |
| bc_sampler (RESAMPLING_CORE_TYPE valB, RESAMPLING_CORE_TYPE valC) |
template<typename Weight > |
void | operator() (const RESAMPLING_CORE_TYPE &distance, Weight &weight) |
| Get weight for a specific distance, for all BC-cubic resampling (bicubic, catmul-rom, ...).
|
Data Fields |
const size_t | _windowSize |
const RESAMPLING_CORE_TYPE | _valB |
const RESAMPLING_CORE_TYPE | _valC |
Detailed Description
Definition at line 10 of file bc.hpp.
Constructor & Destructor Documentation
terry::sampler::bc_sampler::bc_sampler |
( |
| ) |
[inline] |
terry::sampler::bc_sampler::bc_sampler |
( |
RESAMPLING_CORE_TYPE |
valB, |
|
|
RESAMPLING_CORE_TYPE |
valC |
|
) |
| [inline] |
Member Function Documentation
template<typename Weight >
void terry::sampler::bc_sampler::operator() |
( |
const RESAMPLING_CORE_TYPE & |
distance, |
|
|
Weight & |
weight |
|
) |
| [inline] |
Get weight for a specific distance, for all BC-cubic resampling (bicubic, catmul-rom, ...).
For compute cubic BC resampler weights, we use these functions [ Reconstruction Filters in Computer Graphics, Don P. Mitchell, Arun N. Netravali, Computer Graphics - volume 22 number 4 - August 1988 online paper ]:
- Parameters:
-
[in] | B | value of B in BC-cubic resampling function |
[in] | C | value of C in BC-cubic resampling function |
[in] | distance | between the pixels and the current pixel |
[out] | weight | return value to weight the pixel in filtering |
Definition at line 53 of file bc.hpp.
References RESAMPLING_CORE_TYPE.
Field Documentation
The documentation for this struct was generated from the following file:
- libraries/terry/src/terry/sampler/bc.hpp