Why do i get different results when i perform convolution with different ways?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Gn Gnk
el 10 de Dic. de 2020
Comentada: Gn Gnk
el 10 de Dic. de 2020
Hello ,
i have an image 30x30 and i want to perform convolution with a filter 9x9 using 2 methods . Firstly , i need to perform the convolution using conv2() and then using ifft2(fft2(image)*fft2(filter)) . Can someone explain why in the first case i get back a 38x38 result as expected ( i am aware that the result after the convolution is length(image+filter-1)) but in the second i get back a 30x30 result? Isn't supposed to be the same procedure ?
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Transforms en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!