开发者

Convolution with separable kernel

开发者 https://www.devze.com 2023-02-22 12:39 出处:网络
I\'m looking at the CUDA SDK convolution with separable kernels, and I have a simple question but can\'t find an answer:

I'm looking at the CUDA SDK convolution with separable kernels, and I have a simple question but can't find an answer:

Do the vectors, whose convolution gives the kernel, need to have the same size? Can I first perform a row-convolution with a vector 1x3 and then a column convolution with another one 5x1 ? Or they both need to be same size? Google isn't helping (or 开发者_JAVA技巧I'm unable to search for an answer)


Yes, the vectors can be different sizes. The only consequence is that you'll get a rectangular matrix that is not square.


The vectors of a separable convolution could only be different sizes if the equivalent convolution matrix was not square.

0

精彩评论

暂无评论...
验证码 换一张
取 消