SHOGUN
4.2.0
|
Partial specialization of convolve for the Eigen3 backend
Definition at line 88 of file Convolve.h.
Public Types | |
typedef Matrix::Scalar | T |
typedef Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > | MatrixXt |
typedef Eigen::Matrix< T, Eigen::Dynamic, 1 > | VectorXt |
Static Public Member Functions | |
static void | compute (SGMatrix< T > X, SGMatrix< T > W, SGMatrix< T > Y, bool flip, bool overwrite, int32_t stride_x, int32_t stride_y) |
typedef Eigen::Matrix<T,Eigen::Dynamic,Eigen::Dynamic> MatrixXt |
Eigen3 matrix type
Definition at line 94 of file Convolve.h.
typedef Matrix::Scalar T |
The scalar type
Definition at line 91 of file Convolve.h.
typedef Eigen::Matrix<T,Eigen::Dynamic,1> VectorXt |
Eigen3 vector type
Definition at line 97 of file Convolve.h.
|
static |
Computes the 2D convolution of X with W
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 |
Definition at line 112 of file Convolve.h.