WeightingFunctionName enum
Enum of built-in weighting functions.
ts
enum WeightingFunctionName {
BOX = "Box",
CUBIC_BC = "CubicBC",
}
BOX
A Box filter is an equal weighting function (all weights equal). DO NOT LIMIT results by support or resize point sampling will work as it requests points beyond its normal 0.0 support size.
CUBIC_BC
Cubic Filters using B,C determined values:
Name | B | C | Description |
---|---|---|---|
Mitchell-Netravali | 1/3 | 1/3 | "Balanced" cubic spline filter |
Catmull-Rom | 0 | 1/2 | Interpolatory and exact on linears |
Spline | 1 | 0 | B-Spline Gaussian approximation |
Hermite | 0 | 0 | B-Spline interpolator |
Details
See paper by Mitchell and Netravali, Reconstruction Filters in Computer Graphics Computer Graphics, Volume 22, Number 4, August 1988
Coefficents are determined from B,C values:
which are used to define the filter:
which ensures function is continuous in value and derivative (slope).