3 Dimensional convolution in Matlab

  • Thread starter Thread starter watertreader
  • Start date Start date
  • Tags Tags
    Convolution Matlab
Click For Summary
SUMMARY

The discussion focuses on performing 3-dimensional convolution using MATLAB, specifically with the command conv2 for a reduced 2-dimensional function. The user attempts to convolve a symmetrical circular function, h1(r,z), with itself, but encounters unexpected results, including a central null region instead of a peak. The issue arises despite the function being centered correctly in the matrices, as illustrated in the attached images func1.jpg and func2.jpg.

PREREQUISITES
  • Understanding of 3D convolution concepts
  • Familiarity with MATLAB programming environment
  • Knowledge of 2D and 3D function representation
  • Experience with image processing in MATLAB
NEXT STEPS
  • Research the MATLAB function convn for 3D convolution
  • Explore techniques for visualizing convolution results in MATLAB
  • Learn about circular functions and their properties in 3D space
  • Investigate the impact of matrix centering on convolution outcomes
USEFUL FOR

Mathematics and engineering students, MATLAB users, image processing professionals, and anyone interested in advanced convolution techniques 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: 554
  • 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 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
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 5 ·
Replies
5
Views
5K
  • · Replies 9 ·
Replies
9
Views
2K