Microscopy Image Browser  1.233
All Classes Files Functions Variables Pages
imgaussian.m File Reference

IMGAUSSIAN filters an 1D, 2D color/greyscale or 3D image with an Gaussian filter. This function uses for filtering IMFILTER or if compiled the fast mex code imgaussian.c . Instead of using a multidimensional gaussian kernel, it uses the fact that a Gaussian filter can be separated in 1D gaussian kernels. More...

Functions

function I = imgaussian (I, sigma, siz)
 IMGAUSSIAN filters an 1D, 2D color/greyscale or 3D image with an Gaussian filter. This function uses for filtering IMFILTER or if compiled the fast mex code imgaussian.c . Instead of using a multidimensional gaussian kernel, it uses the fact that a Gaussian filter can be separated in 1D gaussian kernels. More...
 

Detailed Description

IMGAUSSIAN filters an 1D, 2D color/greyscale or 3D image with an Gaussian filter. This function uses for filtering IMFILTER or if compiled the fast mex code imgaussian.c . Instead of using a multidimensional gaussian kernel, it uses the fact that a Gaussian filter can be separated in 1D gaussian kernels.

Function Documentation

function I = imgaussian (   I,
  sigma,
  siz 
)

IMGAUSSIAN filters an 1D, 2D color/greyscale or 3D image with an Gaussian filter. This function uses for filtering IMFILTER or if compiled the fast mex code imgaussian.c . Instead of using a multidimensional gaussian kernel, it uses the fact that a Gaussian filter can be separated in 1D gaussian kernels.

J=IMGAUSSIAN(I,SIGMA,SIZE)

inputs, I: The 1D, 2D greyscale/color, or 3D input image with data type Single or Double SIGMA: The sigma used for the Gaussian kernel SIZE: Kernel size (single value) (default: sigma*6)

outputs, J: The gaussian filtered image

note, compile the code with: mex imgaussian.c -v

example, I = im2double(imread(peppers.png)); figure, imshow(imgaussian(I,10));

Function is written by D.Kroon University of Twente (September 2009)

Referenced by Hessian3D().

Here is the caller graph for this function: