Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

2D Convolution

  • To: mathgroup at
  • Subject: [mg75946] 2D Convolution
  • From: Mathieu G <ellocomateo at>
  • Date: Mon, 14 May 2007 03:28:06 -0400 (EDT)

I need your help on this problem please!
I would like to compute + plot a 2D convolution between a disk- or 
square shaped hole, and a 2D Gaussian.
Here is where I am so far...

HoleSize = 300*^-9; (*Radius or side length*)
BeamRadius = 3.81*^-6;

Gaussian2D[x_, y_] := Exp[-((x/BeamRadius)^2 + (y/BeamRadius)^2)/2];

(*Disk-shape hole*)
DHole = Disk[{0, 0}, HoleSize/2];

(*Square-shape hole*)
SHole = Rectangle[{-HoleSize/2, -HoleSize/2}, {HoleSize/2,

Plot3D[Gaussian2D[x, y], {x, -4 BeamRadius,
   4 BeamRadius}, {y, -4 BeamRadius, 4 BeamRadius},
  ColorFunction -> "Rainbow", PlotRange -> Full]

Beam = Gaussian2D[{x, -5 BeamRadius, 5 BeamRadius}, {y, -5 BeamRadius,
      5 BeamRadius}];


Every advice welcome!
Thank you,

  • Prev by Date: Re: graphics
  • Next by Date: Re: Plus sets in mathematica..?
  • Previous by thread: Re: Deleting duplicates from a list
  • Next by thread: Re: 2D Convolution