Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.