Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Which other values does the anchor point in blur function take?

This link says:

anchor – anchor point; default value Point(-1,-1) means that the anchor is at the kernel center.

I could change this value to (0,0) and it worked with the image slightly shifted to top left. But it did not work for any other value. So, I'm a bit unclear about what does it exactly mean?

click to hide/show revision 2
Function call added

Which other values does the anchor point in blur function take?

This link says:

anchor – anchor point; default value Point(-1,-1) means that the anchor is at the kernel center.

I could change this value to (0,0) and it worked with the image slightly shifted to top left. But it did not work for any other value. value i.e. it gives Unhandled Exception (Unhandled exception at 0x75d8d36f in testCV.exe: Microsoft C++ exception: cv::Exception at memory location 0x0020ee6c..) for any other value of the coordinates of the anchor point. So, I'm a bit unclear about what does it exactly mean?

blur(src, dst, Size(i, i), Point( 2, 2 )); // The point takes on (0,0) & (-1,-1) values for now. Why???