def filter2D(input_arr, filter):
    return cv2.filter2D(input_arr, 
                        -1, 
                        filter,
                        borderType=cv2.BORDER_CONSTANT)
2D filtering (i.e. convolution but without mirroring the filter).  Mostly a convenience wrapper
dataset/ETHPy150Open bbabenko/simple_convnet/simple_convnet/helpers.py/filter2D