/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-roccv/checkouts/latest/include/core/wrappers/interpolation_wrapper.hpp Source File#
5 min read time
Applies to Linux
interpolation_wrapper.hpp
Go to the documentation of this file.
__device__ __host__ int64_t batches() const
Retrieves the number of batches in the image tensor.
Definition: border_wrapper.hpp:151
__device__ __host__ int64_t width() const
Retrieves the width of the image.
Definition: border_wrapper.hpp:144
__device__ __host__ int64_t height() const
Retrives the height of the images.
Definition: border_wrapper.hpp:137
__device__ __host__ int64_t channels() const
Retries the number of channels in the image.
Definition: border_wrapper.hpp:158
__device__ __host__ const T at(int64_t n, int64_t h, int64_t w, int64_t c) const
Returns a reference to the underlying data given image coordinates. If the coordinates fall out of bo...
Definition: border_wrapper.hpp:69
A kernel-friendly wrapper which provides interpolation logic based on the given coordinates....
Definition: interpolation_wrapper.hpp:42
InterpolationWrapper(const Tensor &tensor, T border_value)
Wraps a roccv::Tensor in an InterpolationWrapper to provide pixel interpolation when accessing non-in...
Definition: interpolation_wrapper.hpp:51
__device__ __host__ const T at(int64_t n, float h, float w, int64_t c) const
Retrieves an interpolated value at given image batch coordinates.
Definition: interpolation_wrapper.hpp:69
__device__ __host__ int64_t width() const
Definition: interpolation_wrapper.hpp:106
__device__ __host__ int64_t channels() const
Definition: interpolation_wrapper.hpp:108
InterpolationWrapper(BorderWrapper< T, B > borderWrapper)
Wraps a BorderWrapper in an Interpolation wrapper. Extends capabilities to interpolate pixel values w...
Definition: interpolation_wrapper.hpp:59
__device__ __host__ int64_t batches() const
Definition: interpolation_wrapper.hpp:107
__device__ __host__ int64_t height() const
Definition: interpolation_wrapper.hpp:105
Definition: tensor.hpp:37
Definition: strided_data_wrap.hpp:33
This header defines common arithmetic operators for HIP vectorized types.