gaussian

From DavinciWiki
Jump to: navigation, search

Description

Creates a gaussian filter kernel of size x by y by 1

Arguments and Return Values

Arguments: Dimensions of desired kernel [x,y]

Return Value: A float bsq array

Usage

Syntax: gaussian(width, height [, amplitude = FLOAT][, sigma = FLOAT])

width = desired kernel width

height = desired kernel height

Optional:

sigma = kernel standard deviation (Default is 1)

amplitude = height of the normal kernel value (Default is 1)

Examples

dv> kern=gaussian(1,21)
1x21x1 array of float, bsq format [84 bytes]
1.928749893e-22   
2.576757150e-18   
1.266416578e-14   
2.289734895e-11   
1.522997906e-08   
3.726653176e-06   
0.0003354626242   
0.01110899635   
0.1353352815   
0.6065306664   
1.000000000   
0.6065306664   
0.1353352815   
0.01110899635   
0.0003354626242   
3.726653176e-06   
1.522997906e-08   
2.289734895e-11   
1.266416578e-14   
2.576757150e-18   
1.928749893e-22    

dv> kern2=gaussian(1,21,sigma=2)
1x21x1 array of float, bsq format [84 bytes]
3.726653176e-06   
4.006529707e-05   
0.0003354626242   
0.002187491162   
0.01110899635   
0.04393693432   
0.1353352815   
0.3246524632   
0.6065306664   
0.8824968934   
1.000000000   
0.8824968934   
0.6065306664   
0.3246524632   
0.1353352815   
0.04393693432   
0.01110899635   
0.002187491162   
0.0003354626242   
4.006529707e-05   
3.726653176e-06   

dv> plot(kern,kern2)

Images

gaussianplot.png

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Major Sub-Functions

Recent Library Changes

Created On: 09-22-2010
Modified On: 09-22-2010

Personal tools