The OpenCV documentation states here that the maximum kernel size for getDerivKernels() is 7.
However, the code here states that the kernel size can be up to 31.
Why does the documentation say up to 7, when it is allowed up to 31? And why is it limited to 31?