Cv2.blur() borderType:What is the default value?

What is the default value of bordertype for each filter?

you have to read doc :
and border_default

it is gfedcb|abcdefgh|gfedcba

1 Like

Thank you very much!!

If I want to fill the edge of the image with constant 100, use CV2. Border_ Constant, how to set constant?

st1 = cv2.blur(img, (5, 5), cv2.BORDER_CONSTANT, value=100)
Like this? There will be errors.

That’s not possible. You have to use first copyMakeBorder and blur with flag cv2.BORDER_CONSTANT.
There is a tutorial here