VisionCpp  0.0.1
Public Types | Public Member Functions | Public Attributes | List of all members
visioncpp::internal::LocalNeighbour< T > Struct Template Reference

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>

Inheritance diagram for visioncpp::internal::LocalNeighbour< T >:
Collaboration diagram for visioncpp::internal::LocalNeighbour< T >:

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
 

Detailed Description

template<typename T>
struct visioncpp::internal::LocalNeighbour< T >

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

Template Parameters
Tis the pixel type for the local memory

Definition at line 36 of file mem_neighbour.hpp.

Member Typedef Documentation

◆ PixelType

template<typename T >
using visioncpp::internal::LocalNeighbour< T >::PixelType = T

Definition at line 38 of file mem_neighbour.hpp.

Constructor & Destructor Documentation

◆ LocalNeighbour()

template<typename T >
visioncpp::internal::LocalNeighbour< T >::LocalNeighbour ( cl::sycl::local_ptr< T > &  ptr,
size_t  colsArg,
size_t  rowsArg 
)
inline

Definition at line 43 of file mem_neighbour.hpp.

Member Function Documentation

◆ at() [1/2]

template<typename T >
PixelType visioncpp::internal::LocalNeighbour< T >::at ( int  c) const
inline

function at provides access to a specific Coordinate for a 1d buffer parameters:

Parameters
cindex
Returns
PixelType

Definition at line 69 of file mem_neighbour.hpp.

References visioncpp::internal::LocalNeighbour< T >::ptr.

◆ at() [2/2]

template<typename T >
PixelType visioncpp::internal::LocalNeighbour< T >::at ( int  c,
int  r 
) const
inline

function at provides access to a specific Coordinate for a 2d buffer parameters:

Parameters
ccolumn index
rrow index
Returns
PixelType

Definition at line 60 of file mem_neighbour.hpp.

References visioncpp::internal::calculate_index(), and visioncpp::internal::LocalNeighbour< T >::ptr.

Here is the call graph for this function:

◆ set_offset()

template<typename T >
void visioncpp::internal::LocalNeighbour< T >::set_offset ( int  c,
int  r 
)
inline

function set_offset:

used to set the local memory offset for each local thread function parameters:

Parameters
c: column index
rrow index
Returns
void

Definition at line 51 of file mem_neighbour.hpp.

References visioncpp::internal::LocalNeighbour< T >::I_c, and visioncpp::internal::LocalNeighbour< T >::I_r.

Member Data Documentation

◆ I_c

template<typename T >
int visioncpp::internal::LocalNeighbour< T >::I_c

◆ I_r

template<typename T >
int visioncpp::internal::LocalNeighbour< T >::I_r

◆ ptr

template<typename T >
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().


The documentation for this struct was generated from the following file: