src/utils/matrix/AbstractMatrix.java
public Matrix convolve(Matrix filter) throws MatrixException {
        Matrix result = getNewMatrix(getRows() - getFilterRowSize() + 1, getColumns() - getFilterColumnSize() + 1);
        convolve(filter, result);
        return result;
    }
/**
     * Calculates convolution between this matrix and filter matrix.
     *
     * @param filter filter matrix.
     * @return calculated result of convolution.
     * @throws MatrixException throws exception if matrix operation fails.
     */
Calculates convolution between this matrix and filter matrix.

@param filter filter matrix.
@return calculated result of convolution.
@throws MatrixException throws exception if matrix operation fails.
Calculates convolution between this matrix and filter matrix . @param filter filter matrix . @return calculated result of convolution . @throws MatrixException throws exception if matrix operation fails .
public Matrix convolve(Matrix filter) throws MatrixException {
        Matrix result = getNewMatrix(getRows() - getFilterRowSize() + 1, getColumns() - getFilterColumnSize() + 1);
        convolve(filter, result);
        return result;
    }
public Matrix convolve ( Matrix filter ) throws MatrixException { Matrix result = getNewMatrix ( getRows ( ) - getFilterRowSize ( ) + 1 , getColumns ( ) - getFilterColumnSize ( ) + 1 ) ; convolve ( filter , result ) ; return result ; }
Calculates convolution between this matrix and filter matrix.
Calculates convolution between this matrix and filter matrix .