VisionCpp
0.0.1
|
LocalNeighbour is used to provide local access for each element of the local memory based on the Coordinate passed by eval expression. More...
#include <mem_neighbour.hpp>
Public Types | |
using | PixelType = T |
Public Member Functions | |
LocalNeighbour (cl::sycl::local_ptr< T > &ptr, size_t colsArg, size_t rowsArg) | |
void | set_offset (int c, int r) |
function set_offset: More... | |
PixelType | at (int c, int r) const |
function at provides access to a specific Coordinate for a 2d buffer parameters: More... | |
PixelType | at (int c) const |
function at provides access to a specific Coordinate for a 1d buffer parameters: More... | |
Public Attributes | |
cl::sycl::local_ptr< T > & | ptr |
int | I_c |
int | I_r |
LocalNeighbour is used to provide local access for each element of the local memory based on the Coordinate passed by eval expression.
It is used as an input type for user functor when the local neighbour operation is required. template parameters
T | is the pixel type for the local memory |
Definition at line 36 of file mem_neighbour.hpp.
using visioncpp::internal::LocalNeighbour< T >::PixelType = T |
Definition at line 38 of file mem_neighbour.hpp.
|
inline |
Definition at line 43 of file mem_neighbour.hpp.
|
inline |
function at provides access to a specific Coordinate for a 1d buffer parameters:
c | index |
Definition at line 69 of file mem_neighbour.hpp.
References visioncpp::internal::LocalNeighbour< T >::ptr.
|
inline |
function at provides access to a specific Coordinate for a 2d buffer parameters:
c | column index |
r | row index |
Definition at line 60 of file mem_neighbour.hpp.
References visioncpp::internal::calculate_index(), and visioncpp::internal::LocalNeighbour< T >::ptr.
|
inline |
function set_offset:
used to set the local memory offset for each local thread function parameters:
c | : column index |
r | row index |
Definition at line 51 of file mem_neighbour.hpp.
References visioncpp::internal::LocalNeighbour< T >::I_c, and visioncpp::internal::LocalNeighbour< T >::I_r.
int visioncpp::internal::LocalNeighbour< T >::I_c |
Definition at line 41 of file mem_neighbour.hpp.
Referenced by visioncpp::internal::LocalNeighbour< T >::set_offset().
int visioncpp::internal::LocalNeighbour< T >::I_r |
Definition at line 42 of file mem_neighbour.hpp.
Referenced by visioncpp::internal::LocalNeighbour< T >::set_offset().
cl::sycl::local_ptr<T>& visioncpp::internal::LocalNeighbour< T >::ptr |
Definition at line 39 of file mem_neighbour.hpp.
Referenced by visioncpp::internal::LocalNeighbour< T >::at().