Generating Gaussian Filter 2D Matrix
Function Inputs:
- Filter_size: size of filter
- sigma: standard deviation
Function Output:
- 2D Gaussian filter matrix
Example to plot filter matrix in 3D:
g1=Gaussian_filter(50,2);
g2=Gaussian_filter(50,7);
g3=Gaussian_filter(50,11);
figure(1);
subplot(1,3,1);surf(g1);title('filter size = 50, sigma = 2');
subplot(1,3,2);surf(g2);title('filter size = 50, sigma = 7');
subplot(1,3,3);surf(g3);title('filter size = 50, sigma = 11');
Zitieren als
Duc Chung Tran (2024). Generating Gaussian Filter 2D Matrix (https://www.mathworks.com/matlabcentral/fileexchange/46189-generating-gaussian-filter-2d-matrix), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
Tags
Quellenangaben
Inspiriert: filt2 2D geospatial data filter
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.1.0.0 | Update my name in Copyright owner section |
||
1.0.0.0 |