Template Class InterpolationWrap< BW, NVCV_INTERP_CUBIC >

Inheritance Relationships

Base Type

Class Documentation

template<class BW>
class InterpolationWrap<BW, NVCV_INTERP_CUBIC> : public nvcv::cuda::detail::InterpolationWrapImpl<BW, NVCV_INTERP_CUBIC>

Interpolation wrapper class specialized for NVCV_INTERP_CUBIC.

Template Parameters:

BW – It is a BorderWrap class with any dimension and type.

Public Functions

InterpolationWrap() = default
inline explicit __host__ InterpolationWrap(const TensorDataStridedCuda &tensor, ValueType borderValue = {}, float scaleX = {}, float scaleY = {})

Constructs an InterpolationWrap by wrapping a tensor.

Parameters:
  • tensor[in] A TensorDataStridedCuda object to be wrapped.

  • borderValue[in] The border value.

  • scaleX[in] The scale X value is ignored in non-Area interpolation types.

  • scaleY[in] The scale Y value is ignored in non-Area interpolation types.

template<typename... Args> inline explicit __host__ __device__ InterpolationWrap (TensorWrapper tensorWrap, ValueType borderValue, float scaleX, float scaleY, Args... tensorShape)

Constructs an InterpolationWrap by wrapping a tensorWrap.

Parameters:
  • tensorWrap[in] A TensorWrap object to be wrapped.

  • borderValue[in] The border value.

  • scaleX[in] The scale X value is ignored in non-Area interpolation types.

  • scaleY[in] The scale Y value is ignored in non-Area interpolation types.

inline explicit __host__ __device__ InterpolationWrap (BorderWrapper borderWrap, float scaleX={}, float scaleY={})

Constructs an InterpolationWrap by wrapping a borderWrap.

Parameters:
  • borderWrap[in] A BorderWrap object to be wrapped.

  • scaleX[in] The scale X value is ignored in non-Area interpolation types.

  • scaleY[in] The scale Y value is ignored in non-Area interpolation types.