フィルターのクリア

Why is this not recommended: fspecial('​gaussian',​hsize,sigm​a)

6 ビュー (過去 30 日間)
KAE
KAE 2017 年 11 月 3 日
コメント済み: KAE 2017 年 11 月 21 日
I have an N-D image with dimensions nRow x nCol x nChannel, where nChannel is 10. I would like to apply a Gaussian filter to each nRow x nCol layer. We have been using fspecial ('gaussian',hsize,sigma) because it can perform N-D filtering and gives satisfactory results for removing small features. However the fspecial help says "Use of fspecial with the 'gaussian' syntax is not recommended" and recommends substituting imgaussfilt or imgaussfilt3, but these won't work with N-D images.
Any idea of why this recommendation is in place? If it is for a good technical reason, is there another built in filter suitable for removing small features but preserving edges?

採用された回答

KAE
KAE 2017 年 11 月 20 日
Matlab support said that the recommended replacement functions, "imgaussfilt" and "imgaussfilt3", are "generally faster and more advanced". Also they point out that the documentation for "imgaussfilt" states that the "A" matrix input can be of any dimension, so it should work for N-D images.
  3 件のコメント
Image Analyst
Image Analyst 2017 年 11 月 20 日
That's fine for you to accept if you found an answer that is the best. Anyway, you don't get reputation points/credit for accepting your own answers.
KAE
KAE 2017 年 11 月 21 日
Good, that makes sense.

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by