First time here? Check out the FAQ!
answered 2017-02-01 20:45:30 -0600
Here it is. in filter.cpp, in preprocess2DKernel, if the kernel is all zero, it creates a fake coordinate. However, it defaults to Point(0,0). Change it to Point(kernel.rows / 2, kernel.cols / 2) and the problem goes away.