3 Dimensional convolution in Matlab

  • Thread starter Thread starter watertreader
  • Start date Start date
  • Tags Tags
    Convolution Matlab
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 5K views
watertreader
Messages
21
Reaction score
0
Hi, I am trying to get the 3 dimensional convolution of a 3 dimensional function with itself using Matlab.



g(x,y,z) = h1(x,y,z) 3dconvolute with h1(x,y,z)



As the 3d function is symmetrical in the x,y direction(a circular function), I have reduced the function to a 2 dimensional one.

g(r,z) = h1(r,z) 3dconvolute with h1(r,z). The MATLAB command used is conv2(h1,h1); h1 figure attached as func1.jpg

The center of the h1 function is in the central coordinate of the matrices. The result of the convolution looks queer as attached (func2.jpg). There is a central null region which should be the peak instead(from the simulation result shown in reference)
[/
 

Attachments

  • func1.jpg
    func1.jpg
    35.5 KB · Views: 576
  • func2.jpg
    func2.jpg
    25.1 KB · Views: 578
Physics news on Phys.org
i need 3*3 convolution for image(.bmp) in matlab