Gaussian filtering for images

バージョン 1.0.1 (4.55 KB) 作成者: Evan Czako
Smoother versions of highpass and lowpass filters where spatial frequency thresholds correspond to the FWHM of Gaussian-based filters.
ダウンロード: 383
更新 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 リポジトリにアクセスしてください。