Changed the BorderCopy method to cv.BORDER_WRAP.
After an extensive test I realized that the smalled error is achieved with this method.
However, if BorderCopy is not used the error is even smaller! Hence, the BorderCopy
method is by default turned off.