SmoothArea
Version 1.0.3 (2,82 KB) von
Simon Schwab
Two dimensional averaging (mean or median) of an array using a sliding window.
This function performs a two dimensional smoothing on a given array by calculating the median or mean value around each entry within a sliding window.
The size and center point of the sliding window can be chosen as wanted. The window adapts to the borders of the array. You can choose whether or not the center point itself should be considered in the averaging process.
NaN values in the original data may be kept or replaced with averaged data from surrounding entries. You are free to choose if they should be considered in the averaging or not.
Further control about the process may be achieved by using binary maps marking locations of:
- only certain values that shall be replaced with a new value
- values to not be considered in the averaging (useful to handle outliers in the data)
This is my first published piece of code. If you experience issues or have tips for improvement please let me know.
Zitieren als
Simon Schwab (2024). SmoothArea (https://www.mathworks.com/matlabcentral/fileexchange/110135-smootharea), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2018b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.3 | bugfix in exclude map function |
||
1.0.2 | changes in description |
||
1.0.1 | changed description |
||
1.0.0 |