GaussianBlur ksize - correlation with image size

asked 2016-03-02 09:12:21 -0600

guy gravatar image

updated 2016-03-02 09:13:57 -0600

Hello,

I wrote an algorithm that applies GaussianBlur on several images of different size. I read that GaussianBlur's ksize has to be odd and the same so I tried (5, 5) which works for some images but for some others not (gives me "OpenCV Error: Assertion failed ..."). Is there some correlation between ksize and the input image's size?

edit retag flag offensive close merge delete

Comments

Normally there is no correlation.

Can you give code and image to test it?

LBerger gravatar imageLBerger ( 2016-03-02 15:57:43 -0600 )edit