Class BilinearWarpingKernel::BilinearFunction1

Nested Relationships

This class is a nested type of Class BilinearWarpingKernel.

Inheritance Relationships

Base Type

Class Documentation

class BilinearFunction1 : public lsst::afw::math::Function1<Kernel::Pixel>

1-dimensional bilinear interpolation function.

Optimized for bilinear warping so only accepts two values: 0 and 1 (which is why it defined in the BilinearWarpingKernel class instead of being made available as a standalone function).

Public Types

typedef std::shared_ptr<Function1<Kernel::Pixel>> Function1Ptr

Public Functions

BilinearFunction1(double fracPos)

Parameters
  • fracPos: fractional position; must be >= 0 and < 1

Construct a Bilinear interpolation function

~BilinearFunction1()
Function1Ptr clone() const

Return a pointer to a deep copy of this function

This function exists instead of a copy constructor so one can obtain a copy of an actual function instead of a useless copy of the base class.

Every concrete subclass must override this method.

Return

a pointer to a deep copy of the function

Kernel::Pixel operator()(double x) const

Solve bilinear equation

Only the following arguments will give reliably meaningful values:

  • 0.0 or 1.0 if the kernel center index is 0 in this axis

  • -1.0 or 0.0 if the kernel center index is 1 in this axis

std::string toString(std::string const& = "") const

Return string representation.