3 Dimensional convolution in Matlab

  • Thread starter Thread starter watertreader
  • Start date Start date
  • Tags Tags
    Convolution Matlab
Click For Summary
The discussion focuses on performing 3-dimensional convolution of a symmetrical function in Matlab, specifically using the command conv2 for a reduced 2-dimensional version of the function. The user is attempting to convolve the function h1 with itself, but the resulting output shows an unexpected central null region instead of a peak. The user has provided attachments (func1.jpg and func2.jpg) to illustrate the original function and the convolution result. There is a mention of needing a 3x3 convolution for an image in .bmp format as well. The conversation highlights challenges in achieving the desired convolution output in Matlab.
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: 552
  • func2.jpg
    func2.jpg
    25.1 KB · Views: 562
Physics news on Phys.org
i need 3*3 convolution for image(.bmp) in matlab
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
1K
Replies
15
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 5 ·
Replies
5
Views
5K