Gaussian filtering for images
Takes input image, modifies its frequency domain according to upper or lower spatial frequency thresholds, and returns the filtered image. These are Gaussian filters in that the threshold frequencies correspond to the FWHM (full-width-at-half-maximum) of the Gaussian equations defining the filters. The frequencies outside of the threshold smoothly and asymptotically decay to 0.
Compare to the "hard" filters I contributed at: https://www.mathworks.com/matlabcentral/fileexchange/72682-hard-low-pass-high-pass-and-band-pass-filtering-for-images
The hard filters are good for isolating specific frequencies, but when applied to images that represent more than a simple superposition of waves, they often yield results with wavy artifacts, most likely due to image edges and the discontinuous nature of the filter.
This Gaussian filter is less robust for isolating particular frequencies (as it does not entirely eliminate frequencies outside of those defined by the threshold, instead allowing them to smoothly decay), but is better suited for providing artifact-free filtered images, which are in some contexts (e.g. precision-machining) more useful.
This function also includes a scale factor for physical data. This should be utilized any time the height of an image differs physically from its width (e.g. an image that physically represents a 2 mm x 3 mm area).
Please see function description and examples for a more in-depth explanation and demonstration of its use.
Cite As
Evan Czako (2024). Gaussian filtering for images (https://github.com/EvanCzako/gaussian-image-filtering), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Image Filtering and Enhancement > Image Filtering >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Versions that use the GitHub default branch cannot be downloaded
Version | Published | Release Notes | |
---|---|---|---|
1.0.1 | Connected to GitHub. |
|
|
1.0.0 |