No BSD License  

3.625

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

Custom 2D Gauss

by

 

09 Jan 2006 (Updated )

Generates a customized 2D gauss

| Watch this File

File Information
Description

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

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  
12 Jul 2010 Morten

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

good!

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