VisionCpp
0.0.1
|
GlobalNeighbour is used to provide local access for each element of the global memory based on the Coordinate passed by eval expression. More...
#include <mem_neighbour.hpp>
Public Types | |
using | PixelType = T |
Public Member Functions | |
GlobalNeighbour (cl::sycl::global_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 | |
size_t | I_c |
size_t | I_r |
size_t | cols |
size_t | rows |
cl::sycl::global_ptr< T > & | ptr |
GlobalNeighbour is used to provide local access for each element of the global memory based on the Coordinate passed by eval expression.
It is used as an input type for user functor when the global neighbour operation is required. template parameters
T | is the pixel type for the global memory |
Definition at line 82 of file mem_neighbour.hpp.
using visioncpp::internal::GlobalNeighbour< T >::PixelType = T |
Definition at line 83 of file mem_neighbour.hpp.
|
inline |
Definition at line 89 of file mem_neighbour.hpp.
|
inline |
function at provides access to a specific coordinate for a 1d buffer parameters:
c | index |
Definition at line 115 of file mem_neighbour.hpp.
References visioncpp::internal::GlobalNeighbour< 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 106 of file mem_neighbour.hpp.
References visioncpp::internal::calculate_index(), visioncpp::internal::GlobalNeighbour< T >::cols, visioncpp::internal::GlobalNeighbour< T >::ptr, and visioncpp::internal::GlobalNeighbour< T >::rows.
|
inline |
function set_offset:
used to set the global memory offset for each global thread function parameters:
c | : column index |
r | row index |
Definition at line 97 of file mem_neighbour.hpp.
References visioncpp::internal::GlobalNeighbour< T >::I_c, and visioncpp::internal::GlobalNeighbour< T >::I_r.
size_t visioncpp::internal::GlobalNeighbour< T >::cols |
Definition at line 86 of file mem_neighbour.hpp.
Referenced by visioncpp::internal::GlobalNeighbour< T >::at().
size_t visioncpp::internal::GlobalNeighbour< T >::I_c |
Definition at line 84 of file mem_neighbour.hpp.
Referenced by visioncpp::internal::GlobalNeighbour< T >::set_offset().
size_t visioncpp::internal::GlobalNeighbour< T >::I_r |
Definition at line 85 of file mem_neighbour.hpp.
Referenced by visioncpp::internal::GlobalNeighbour< T >::set_offset().
cl::sycl::global_ptr<T>& visioncpp::internal::GlobalNeighbour< T >::ptr |
Definition at line 88 of file mem_neighbour.hpp.
Referenced by visioncpp::internal::GlobalNeighbour< T >::at().
size_t visioncpp::internal::GlobalNeighbour< T >::rows |
Definition at line 87 of file mem_neighbour.hpp.
Referenced by visioncpp::internal::GlobalNeighbour< T >::at().