SHOGUN
4.2.0
|
Generic class which is specialized for different backends to perform the convolve operation
Definition at line 60 of file Convolve.h.
Public Types | |
typedef Matrix::Scalar | T |
Static Public Member Functions | |
static void | compute (Matrix X, Matrix W, Matrix Y, bool flip, bool overwrite, int32_t stride_x, int32_t stride_y) |
typedef Matrix::Scalar T |
The scalar type
Definition at line 63 of file Convolve.h.
|
static |
Computes the 2D convolution of X with W
NOTE: For the ViennaCL backend, the size of W (number of bytes) must not exceed CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE.
X | Input image |
W | Filter coefficients. The dimensions of the matrix must be odd-numbered. |
Y | Output image of the same size as the input image, as the borders of the input image are implicitly padded with zeros during the computation |
flip | If true the filter coefficients are flipped, performing cross-correlation instead of convolution |
overwrite | If true, the values in Y are overwritten with result of the computation. Otherwise, the result is added to the existing values in Y. |
stride_x | Stride in the x (column) direction |
stride_y | Stride in the y (row) direction |