LAPLAC2D Generate a 2 dimensional gaussian matrice

Usage : >> [ gaussmatrix ] = laplac2d( rows, columns, sigma, meanR, meanC, cut)

Example : >> laplac2d( 5, 5)

Inputs:
rows   
number of rows
columns   
number of columns
sigma   
standart deviation (default: rows/5)
meanR   
mean for rows (default: center of the row)
meanC   
mean for columns (default: center of the column)
cut   
percentage (0->1) of the maximum value for removing values in the matrix (default: 0)

Author: Arnaud Delorme, CNL, Salk Institute, 2001

See the matlab file laplac2d.m (may require other functions)

Back to functions