PCL
pcl::LanczosPixelInterpolation Class Reference

Lanczos pixel interpolation. More...

#include <PixelInterpolation.h>

+ Inheritance diagram for pcl::LanczosPixelInterpolation:

Public Member Functions

 LanczosPixelInterpolation (const LanczosPixelInterpolation &)=default
 
 LanczosPixelInterpolation (int n=3, float clamp=0.3)
 
String Description () const override
 
- Public Member Functions inherited from pcl::PixelInterpolation
 PixelInterpolation ()=default
 
 PixelInterpolation (const PixelInterpolation &)=default
 
virtual ~PixelInterpolation ()
 
virtual bool IsThreadSafe () const
 
template<class P , class T >
Interpolator< P > * NewInterpolator (const T *data, int width, int height, bool unclipped=false) const
 

Detailed Description

LanczosPixelInterpolation uses the Lanczos interpolation algorithm (LanczosInterpolation) to interpolate pixel values from the nearest 2*n^2 neighbor pixels, where n is the filter order.

See also
PixelInterpolation, LanczosInterpolation, BicubicBSplinePixelInterpolation, NearestNeighborPixelInterpolation, BilinearPixelInterpolation, BicubicSplinePixelInterpolation, BicubicFilterPixelInterpolation, Lanczos3LUTPixelInterpolation, Lanczos4LUTPixelInterpolation, Lanczos5LUTPixelInterpolation

Definition at line 782 of file PixelInterpolation.h.

Constructor & Destructor Documentation

◆ LanczosPixelInterpolation() [1/2]

pcl::LanczosPixelInterpolation::LanczosPixelInterpolation ( int  n = 3,
float  clamp = 0.3 
)
inline

Constructs a LanczosPixelInterpolation object.

Parameters
nFilter order (n >= 1). The Lanczos filter interpolates from the nearest (2*n)^2 mapped source pixels for each interpolation point. The default filter order is 3, which means that the interpolation uses a neighborhood of 36 source pixels.
clampClamping threshold. Clamping is applied to fix undershoot (aka ringing) artifacts. A value of this parameter within the [0,1] range enables clamping: The lower the clamping threshold, the more aggresive deringing effect is achieved. A negative threshold value disables the interpolation clamping feature. The default value is 0.3.

Definition at line 802 of file PixelInterpolation.h.

◆ LanczosPixelInterpolation() [2/2]

pcl::LanczosPixelInterpolation::LanczosPixelInterpolation ( const LanczosPixelInterpolation )
default

Copy constructor.

Member Function Documentation

◆ Description()

String pcl::LanczosPixelInterpolation::Description ( ) const
inlineoverridevirtual

Returns a descriptive text string for this pixel interpolation.

Implements pcl::PixelInterpolation.

Definition at line 817 of file PixelInterpolation.h.


The documentation for this class was generated from the following file: