Gaussian filtering of zero-padded and circularized 1-D data
This is a program to test how a gaussian filter works on a set of 1-D data a
e.g. a=[1 10 1 10 1 10 1] --- use this as input or use your own 1D data
This example uses a gaussian filter extracted from wikipedia:
kernel = [0.125 0.625 1 0.625 0.125] for standard normal distribution
NOTE: you could extend the size of the kernel, but then you will need to change 1). the size of padding with zeros or edge elements 2). the indices of f and 3). the number of offset elements for the filtered
signal.
This filter could be used to compare with the conv function in matlab, but it may give you an intuitive control of your filtering. It could be extended
into a 2D image filter quite easily for image processing.
Cita come
Rex Cheung (2025). Gaussian filtering of zero-padded and circularized 1-D data (https://it.mathworks.com/matlabcentral/fileexchange/36075-gaussian-filtering-of-zero-padded-and-circularized-1-d-data), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- Image Processing and Computer Vision > Image Processing Toolbox > Image Filtering and Enhancement > Image Filtering >
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0.0 |
