MATLAB Answers

how does convn function works

19 views (last 30 days)
I spent whole day trying to figure out how convn function works in 'valid' mode for order 3 tensor. I have an input i of size 3*3*2 and a filter w of size 2*2*2 but the output size after convolution is 2*2 as shown below. I just need to understand how the dot product of convolution was performed on both channels of the input 1. please if you can demonstrate how the first entry of the output was calculated by convn function. note that i am rotating w 180 degrees so as to perform cross correlation instead of convolution just for ease of hand calculations check up. many thanks in advance.

  1 Comment

Birdman
Birdman on 3 Apr 2018
Adam's answer moved here:
please see the attached images for i, w, and output

Sign in to comment.

Accepted Answer

Abhishek Ballaney
Abhishek Ballaney on 6 Apr 2018
https://in.mathworks.com/help/matlab/ref/convn.html

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Tags