No License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Custom 2D Gauss

3.6 | 8 ratings Rate this file 9 Downloads (last 30 days) File Size: 1.26 KB File ID: #9556 Version: 1.0
image thumbnail

Custom 2D Gauss



09 Jan 2006 (Updated )

Generates a customized 2D gauss

| Watch this File

File Information

Create a custom 2D gauss, which can be used for filtering, weighting, etc. All parameters are customizable, including standard deviations (sigmaX, sigmaY), rotation (theta), result size, center, etc.

MATLAB release MATLAB 7.0.1 (R14SP1)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (8)
02 Jun 2012 Doe

Doe (view profile)

The second function should be changed into this:
function val = rotgauss(y, x, theta, sigmax, sigmay, offset, factor, center)
x and y is flipped in the original code

14 Feb 2011 Mirko

Mirko (view profile)

12 Jul 2010 Morten

Morten (view profile)

Nice job Thomas, though it seems like you've switched sigmax and sigmay - comments?

Duane Hanselman: The nested loops are not necessary - use [rows,cols] = meshgrid(1:gsize(1),1:gsize(2)); and modify the remaining code to avoid them...

27 Nov 2008 Andreas Sprenger

Great, very flexible, just what we want to have. THX

01 Aug 2008 benedicte dupuis

30 Oct 2006 Rene Michels

No big deal, Just works!
THX a lot for sharing!

22 Jun 2006 Yi fan


09 Jan 2006 Duane Hanselman

Might be worthwhile, but help text is not helpful. No error checking is done. Are nested For loops required?

Contact us