Gaussian filtering for images

版本 1.0.1 (4.6 KB) 作者: Evan Czako
Smoother versions of highpass and lowpass filters where spatial frequency thresholds correspond to the FWHM of Gaussian-based filters.
383.0 次下载
更新时间 2019/11/22

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.

引用格式

Evan Czako (2024). Gaussian filtering for images (https://github.com/EvanCzako/gaussian-image-filtering), GitHub. 检索来源 .

MATLAB 版本兼容性
创建方式 R2018b
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

无法下载基于 GitHub 默认分支的版本

版本 已发布 发行说明
1.0.1

Connected to GitHub.

1.0.0

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库