def filter2D(input_arr, filter):
    return cv2.filter2D(input_arr, 
                        -1, 
                        filter,
                        borderType=cv2.BORDER_CONSTANT)
Main.
dataset/ETHPy150Open bbabenko/simple_convnet/simple_convnet/helpers.py/filter2D--crossover with--dataset/ETHPy150Open AppScale/appscale/Hermes/hermes.py/main