Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The anchor point indicates how the kernel is aligned with the source image. cv::point(-1-1) indicates that the anchor is at the kernel center, i.e., it is equivalent to kernelWidth/2 and kernelHeight/2. In my case, with a 3x3 kernel it works (does not crash) with anchor points from (0,0) to (2,2). In particular, with this way of calling:

cv::blur(src,t1, cv::Size(3,3), cv::Point(2,2));

In this call the anchor is cv::Point(2,2) and so the filter weighted average takes values from the current pixels and from up to 2 left and and upper pixels.