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.
精彩评论