Create a 2D Gaussian Distribution along a line?

6 views (last 30 days)
I am trying to create something like a 2D gaussian distribution, but along a line or a curve instead of from a single point. Is there a name for such a thing?
Ideally the result would look something like this:
Thanks for any help!

Accepted Answer

Image Analyst
Image Analyst on 12 Jun 2013
You can use fspecial() to create a Gaussian kernel, then use conv2() to blur the line/curve/path in a Gaussian shape using your kernel. I'd call that process convolution. You can also use imfilter().

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!