|
VisionCpp
0.0.1
|
ConstNeighbour is used to provide global access to the constant memory. More...
#include <mem_neighbour.hpp>
Public Types | |
| using | PixelType = T |
Public Member Functions | |
| ConstNeighbour (cl::sycl::constant_ptr< T > &ptr, size_t colsArg, size_t rowsArg) | |
| 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 an specific Coordinate for a 1d buffer parameters: More... | |
Public Attributes | |
| cl::sycl::constant_ptr< T > & | ptr |
| size_t | cols |
| size_t | rows |
ConstNeighbour is used to provide global access to the constant memory.
It is used as an input type for user functor when a constant pointer needed to be passed on the device side. An example of such node can be a filter node for convolution operation. template parameters
| T | is the pixel type for the constant memory |
Definition at line 124 of file mem_neighbour.hpp.
| using visioncpp::internal::ConstNeighbour< T >::PixelType = T |
Definition at line 125 of file mem_neighbour.hpp.
|
inline |
Definition at line 129 of file mem_neighbour.hpp.
|
inline |
function at provides access to an specific Coordinate for a 1d buffer parameters:
| c | index |
Definition at line 145 of file mem_neighbour.hpp.
References visioncpp::internal::ConstNeighbour< 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 136 of file mem_neighbour.hpp.
References visioncpp::internal::calculate_index(), visioncpp::internal::ConstNeighbour< T >::cols, visioncpp::internal::ConstNeighbour< T >::ptr, and visioncpp::internal::ConstNeighbour< T >::rows.
| size_t visioncpp::internal::ConstNeighbour< T >::cols |
Definition at line 127 of file mem_neighbour.hpp.
Referenced by visioncpp::internal::ConstNeighbour< T >::at().
| cl::sycl::constant_ptr<T>& visioncpp::internal::ConstNeighbour< T >::ptr |
Definition at line 126 of file mem_neighbour.hpp.
Referenced by visioncpp::internal::ConstNeighbour< T >::at().
| size_t visioncpp::internal::ConstNeighbour< T >::rows |
Definition at line 128 of file mem_neighbour.hpp.
Referenced by visioncpp::internal::ConstNeighbour< T >::at().