BORDER_TRANSPARENT not available in blur()

Hi everyone,

I would like to use the BORDER_TRANSPARENT in the blur() function, but it raises the exception:

./opencv/modules/core/src/copy.cpp:1210: error: (-5:Bad argument) Unknown/unsupported border type in function ‘borderInterpolate’

I am using it on a CV_16UC1 mat, and other border types work. I am running Opencv 4.5.0 on Ubuntu 20.04.

From the documentation of blur(), only BORDER_WRAP is not supported, so I am wondering why it is not working. But the blur() seems to call the borderInterpolate function, which does not seem to support the BORDER_TRANSPARENT.

Am I right?


you’re right, BORDER_TRANSPARENT is not supported,
and the docs should be updated