3 Dimensional convolution in Matlab

  • #1
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: 489
  • func2.jpg
    func2.jpg
    25.1 KB · Views: 498
Physics news on Phys.org
  • #2
i need 3*3 convolution for image(.bmp) in matlab
 

Suggested for: 3 Dimensional convolution in Matlab

Replies
5
Views
890
Replies
1
Views
809
Replies
3
Views
599
Replies
10
Views
992
Replies
1
Views
643
Replies
4
Views
560
Replies
1
Views
704
Replies
1
Views
674
Back
Top