3D Convolution in matlab

Is there a 3D equivalent of the conv2 function in matlab?
I have two 3D matrices that I'd like to convolve together. I know I could code it up in loops but keeping track of the origin is a bit tricky and I thought there must be an existing solution.

 Accepted Answer

Image Analyst
Image Analyst on 1 Sep 2012

1 vote

Did you scroll all the way to the bottom of the conv2 help to the "See also" section? Did you happen to see the link to convn()?

More Answers (1)

Aoife
Aoife on 4 Sep 2012

0 votes

Yes, and no. Next time I'll read more carefully! Thanks for pointing it out.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!