What velue to use for "smooth3(A, 'gaussian', v)?
4 ビュー (過去 30 日間)
古いコメントを表示
When using "smooth3(A, 'gaussian', v), unlike the 'box' method, the value v doesn't seem to take affect. Without v, or 5, or 99 it has the same effect. The 'doc smooth3' doesn't provide real information.
Thanks.
0 件のコメント
採用された回答
Adam Danz
2022 年 10 月 11 日
The syntax smooth3(A,'gaussian',V) passes the data A through a gaussian lowpass filter with a default standard deviation of 0.65 (you could specify that in an optional 4th argument). V defines the 3D window size for the filter.
Without seeing your data or the results, I can't explain why various V values produce the same results. If you attach a mat file that contains A and V I could dig deeper.
4 件のコメント
John D'Errico
2022 年 10 月 12 日
@John - please learn to use comments, not answers.
Anyway, consider that a Gaussian smoothing kernel of size 15 is HUGE, in comparison to a an array of size only 20x20x20. Do you see that I did get differences in my example, for SMALL gaussian kernels?
Anyway, the size of the tiny difference in Frobenious norm you indicate is also not relevant. That is again no surprise. Taking the frobenenius norm just averages out any remnants of noise.
A = randn(100,100,100);
B1 = smooth3(A,'gaussian',3);
B2 = smooth3(A,'gaussian',9);
B3 = smooth3(A,'gaussian',15);
format long g
norm(B1 - B2,'fro')
norm(B1 - B3,'fro')
Again, there ARE Differences to be seen, but the law of large numbers averages those differences out.
LOOK AT THE ARRAYS THEMSELVES TO SEE THAT!
B1(1:3,1:3,1:3)
B2(1:3,1:3,1:3)
Different numbers.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Preprocessing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!