PCL
|
Mitchell-Netravali parameterized cubic filters. More...
#include <BicubicFilterInterpolation.h>
Public Member Functions | |
CubicFilter (const CubicFilter &)=default | |
CubicFilter (double B, double C) | |
virtual | ~CubicFilter () |
virtual CubicFilter * | Clone () const |
virtual String | Description () const |
PCL_HOT_FUNCTION double | operator() (double x) const noexcept |
CubicFilter & | operator= (const CubicFilter &)=default |
double | Width () const noexcept |
CubicFilter implements a two-parameter, separable cubic filter as described in Don P. Mitchell, Arun N. Netravali (1988), Reconstruction Filters in Computer Graphics, Computer Graphics, Vol. 22, No. 4, pp. 221-228.
The family of cubic filters designed by Mitchell and Netravali has two parameters called B and C. Although these parameters can take any values, the authors recommend values pertaining to the line B + 2C = 1. In particular, the filter defined by B=C=1/3 has been proven to have excellent characteristics for a wide range of image reconstruction tasks.
Definition at line 86 of file BicubicFilterInterpolation.h.
|
inline |
Constructs a new CubicFilter object with the specified filter parameters B and C.
Definition at line 94 of file BicubicFilterInterpolation.h.
|
default |
Copy constructor.
|
inlinevirtual |
Virtual destructor.
Definition at line 115 of file BicubicFilterInterpolation.h.
|
inlinevirtual |
Returns a pointer to a dynamically allocated duplicate of this filter.
Reimplemented in pcl::CubicBSplineFilter, pcl::CatmullRomSplineFilter, and pcl::MitchellNetravaliCubicFilter.
Definition at line 167 of file BicubicFilterInterpolation.h.
Referenced by pcl::BicubicFilterPixelInterpolation::BicubicFilterPixelInterpolation().
|
inlinevirtual |
Returns a descriptive text string for this cubic filter.
Reimplemented in pcl::CubicBSplineFilter, pcl::CatmullRomSplineFilter, and pcl::MitchellNetravaliCubicFilter.
Definition at line 159 of file BicubicFilterInterpolation.h.
|
inlinenoexcept |
Evaluates this cubic filter for x.
Definition at line 135 of file BicubicFilterInterpolation.h.
|
default |
Assignment operator.
|
inlinenoexcept |
Returns the filter's width, measured from the origin to its cutoff point. We define the support of a (symmetric) filter as the range ]-width,+width[.
Mitchell-Netravali cubic filters are zero outside the range ]-2,+2[, hence this function always returns 2.
Definition at line 151 of file BicubicFilterInterpolation.h.