A kernel-friendly wrapper which provides interpolation logic based on the given coordinates. This tensor wrapper is typically only used for input tensors and does not provide write access to its underlying data.
More...
#include <interpolation_wrapper.hpp>
template<typename T, eBorderType B, eInterpolationType I>
class roccv::InterpolationWrapper< T, B, I >
A kernel-friendly wrapper which provides interpolation logic based on the given coordinates. This tensor wrapper is typically only used for input tensors and does not provide write access to its underlying data.
- Template Parameters
-
T | Underlying data type of the tensor data. |
C | Number of channels in data type. |
B | Border type to use for interpolation. |
I | Interpolation type to use. |
◆ InterpolationWrapper() [1/2]
template<typename T , eBorderType B, eInterpolationType I>
Wraps a roccv::Tensor in an InterpolationWrapper to provide pixel interpolation when accessing non-integer coordinate mappings.
- Parameters
-
tensor | The tensor to wrap. |
border_value | A fallback border value to use in the case of a constant border mode. |
◆ InterpolationWrapper() [2/2]
template<typename T , eBorderType B, eInterpolationType I>
Wraps a BorderWrapper in an Interpolation wrapper. Extends capabilities to interpolate pixel values when given non-integer coordinates.
- Parameters
-
◆ at()
template<typename T , eBorderType B, eInterpolationType I>
Retrieves an interpolated value at given image batch coordinates.
- Parameters
-
n | Batch index. |
h | Height coordinates. |
w | Width coordinates. |
- Returns
- An interpolated value.
◆ batches()
template<typename T , eBorderType B, eInterpolationType I>
◆ channels()
template<typename T , eBorderType B, eInterpolationType I>
◆ height()
template<typename T , eBorderType B, eInterpolationType I>
◆ width()
template<typename T , eBorderType B, eInterpolationType I>
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-roccv/checkouts/latest/include/core/wrappers/interpolation_wrapper.hpp