Home > Source > Helper > gaussian_smooth.m

gaussian_smooth

PURPOSE ^

==============================================================

SYNOPSIS ^

function new_images = gaussian_smooth(images, sigma)

DESCRIPTION ^

 ==============================================================
 AVERAGE_SMOOTH: Given sequence of 1D data and the value sigma,
                 Gaussian smooth will be applied.

 Code written by Katherine Smith, 2003

    GENERAL

      new_images = gaussian_smooth(images, sigma)

    INPUT/S

      -images:
           Input images.

      -sigma:
           The sigma value (variance) of the Gaussian.
           
    OUTPUT/S

      -new_images:
           The images with Gaussian smooth applied.

    PENDING WORK

      -

    KNOWN BUG/S

      -

    COMMENT/S

      -This is an intermediate routine that uses Gaussian filter

    RELATED FUNCTION/S

      AVERAGE_SMOOTH

    ABOUT

      -Created:     November 23rd, 2003
      -Last update: Novermber 25th, 2003
      -Revision:    0.0.2
      -Author:      R. S. Schestowitz, University of Manchester
 ==============================================================

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function new_images = gaussian_smooth(images, sigma)
0002 % ==============================================================
0003 % AVERAGE_SMOOTH: Given sequence of 1D data and the value sigma,
0004 %                 Gaussian smooth will be applied.
0005 %
0006 % Code written by Katherine Smith, 2003
0007 %
0008 %    GENERAL
0009 %
0010 %      new_images = gaussian_smooth(images, sigma)
0011 %
0012 %    INPUT/S
0013 %
0014 %      -images:
0015 %           Input images.
0016 %
0017 %      -sigma:
0018 %           The sigma value (variance) of the Gaussian.
0019 %
0020 %    OUTPUT/S
0021 %
0022 %      -new_images:
0023 %           The images with Gaussian smooth applied.
0024 %
0025 %    PENDING WORK
0026 %
0027 %      -
0028 %
0029 %    KNOWN BUG/S
0030 %
0031 %      -
0032 %
0033 %    COMMENT/S
0034 %
0035 %      -This is an intermediate routine that uses Gaussian filter
0036 %
0037 %    RELATED FUNCTION/S
0038 %
0039 %      AVERAGE_SMOOTH
0040 %
0041 %    ABOUT
0042 %
0043 %      -Created:     November 23rd, 2003
0044 %      -Last update: Novermber 25th, 2003
0045 %      -Revision:    0.0.2
0046 %      -Author:      R. S. Schestowitz, University of Manchester
0047 % ==============================================================
0048 
0049 filter = fspecial('gaussian',[9 1], sigma); %pass on to built-in function
0050 new_images = imfilter(images,filter); %apply the filter set above

Generated on Thu 13-May-2004 18:00:46 by m2html © 2003