Home > Applications > Horace > @d4d > smooth.m

iFit/smooth

PURPOSE ^

Smooths a four dimensional dataset

SYNOPSIS ^

function wout = smooth (win,varargin)

DESCRIPTION ^

 Smooths a four dimensional dataset

 Syntax:
   >> wout = smooth (win, width, shape)

 Input:
 ------
   win     Input dataset structure
   width   Vector that sets the extent of the smoothing along each dimension.
          The interpretation of width depends on the argument 'shape' described
          below.
           If width is scalar, then the value is applied to all dimensions

   shape   [Optional] Shape of smoothing function [Default: 'hat']
               'hat'           hat function
                                   - width gives FWHH along each dimension in pixels
                                   - width = 1,3,5,...;  n=0 or 1 => no smoothing
               'gaussian'      Gaussian
                                   - width gives FWHH along each dimension in pixels
                                   - elements where more than 2% of peak intensity
                                     are retained

 Output:
 -------
   wout    Smoothed data structure

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Mon 26-Nov-2018 15:08:42 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1