how does convn function works

조회 수: 7 (최근 30일)
Adam adam
Adam adam 2018년 4월 3일
댓글: nora 2023년 4월 7일
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
Birdman
Birdman 2018년 4월 3일
Adam's answer moved here:
please see the attached images for i, w, and output

댓글을 달려면 로그인하십시오.

채택된 답변

Abhishek Ballaney
Abhishek Ballaney 2018년 4월 6일
https://in.mathworks.com/help/matlab/ref/convn.html
  댓글 수: 1
nora
nora 2023년 4월 7일
A = rand(2,3,2);
B = 0.25*ones(2,2,2);
C = convn(A,B);

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Frequency Transformations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by