필터 지우기
필터 지우기

How do I smooth 2D vector field data?

조회 수: 4 (최근 30일)
AP
AP 2011년 7월 6일
I have a vector field in 2D. How can I smooth the data? I found smooth and smooth3 but it seems there is nothing for 2D. Could someone help me?

답변 (1개)

David Young
David Young 2011년 7월 6일
Split your vector field into components (how to do this depends on how it is stored to start with). Smooth each component separately and reassemble them if necessary.
To smooth a 2-D scalar array, you can use conv2 with a suitable kernel. The choice of kernel depends on how much you want to smooth and what your smoothing requirements are. Typically a Gaussian is a good choice - if you have the Image Processing Toolbox you can use fspecial to get one.

카테고리

Help CenterFile Exchange에서 Smoothing and Denoising에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by