Perform conv2 on a batch of images
1 回表示 (過去 30 日間)
古いコメントを表示
I have a set of 2D images for which I would like to convolve each image separately with a kernel. This is particularly important for GPU acceleration because doing the convolution one at a time with a for loop is much slower.
Ideally, conv2(A,B) would be written such as A can be a 3D matrix (m x n p), where p is the number of separate 2D arrays to perform the convolution with B on.
Is there any way in Matlab to do such a thing currently, or would I need to write my own mex function?
0 件のコメント
採用された回答
David Young
2015 年 8 月 7 日
convn does exactly what you describe, given a 3-D array and a 2-D kernel.
その他の回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で GPU Computing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!