filterf.mBack to Contents<< Prev |  Next >> 

filterf
Apply a lowpass filter to a vector/scalar field.

Description
FF = filterf(F,FSIZE) applies a Gaussian filter of size FSIZE to the 
vector/scalar field(s) F. 
 
FF = filterf(F,FSIZE,OPT) specifies the filter: OPT='g' for a 
Gaussian (by default), or OPT='f' (flat, top-hat). 
 
If the zeros of the fields correspond to erroneous values, the 
filtering may affect the neighbouring elements. It is therefore better 
to interpolate the 0s, by adding a '0' to the OPT string (ie, OPT='f0' 
or 'g0'). 
 
The size of the filtered field is smaller than the original field, to 
avoid boundary effects (the convolution is done by CONV2 with the 
option 'valid'). If you prefer to keep the whole field, including the 
borders, add the substring 'same' to OPT (eg, OPT='f0same'). 
 
If no output argument, the result is displayed by showvec or showscal. 
 
Examples: showvec(filterf(loadvec('B00001.vec'),1)); 
          showvec(filterf(loadset,2,'f')); 
          showscal(filterf(vec2scal(loadset,'rot'),2)); 
 
F. Moisy 
Revision: 1.11,  Date: 2005/10/29 
 
See Also
showvec, showscal, bwfilterf, addnoisef, gaussmat, CONV2. 

 Previous: extractfNext: gaussmat 

Help file generated by m2html 1.06