how does convn function works

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 comentario

Birdman
Birdman el 3 de Abr. de 2018
Adam's answer moved here:
please see the attached images for i, w, and output

Iniciar sesión para comentar.

 Respuesta aceptada

Abhishek Ballaney
Abhishek Ballaney el 6 de Abr. de 2018

0 votos

https://in.mathworks.com/help/matlab/ref/convn.html

1 comentario

nora
nora el 7 de Abr. de 2023
A = rand(2,3,2);
B = 0.25*ones(2,2,2);
C = convn(A,B);

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Fourier Analysis and Filtering en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 3 de Abr. de 2018

Comentada:

el 7 de Abr. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by