medfilt3
3 次元のメディアン フィルター処理
説明
例
メディアン フィルター処理を使用して 3 次元データの外れ値を除去
ノイズを含む 3 次元表面を作成します。
[x,y,z,V] = flow(50); noisyV = V + 0.1*double(rand(size(V))>0.95) - 0.1*double(rand(size(V))<0.05);
メディアン フィルター処理を適用します。
filteredV = medfilt3(noisyV);
ノイズを含む表面と共にフィルター処理された表面を表示します。
subplot(1,2,1) hpatch1 = patch(isosurface(x,y,z,noisyV,0)); isonormals(x,y,z,noisyV,hpatch1) set(hpatch1,'FaceColor','red','EdgeColor','none') daspect([1,4,4]) view([-65,20]) axis tight off camlight left lighting phong subplot(1,2,2) hpatch2 = patch(isosurface(x,y,z,filteredV,0)); isonormals(x,y,z,filteredV,hpatch2) set(hpatch2,'FaceColor','red','EdgeColor','none') daspect([1,4,4]) view([-65,20]) axis tight off camlight left lighting phong
入力引数
A
— 入力イメージ
3 次元数値配列 | 3 次元 logical 配列
入力イメージ。3 次元数値配列または logical 配列として指定します。
データ型: single
| double
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
| logical
[m n p]
— 近傍のサイズ
[3 3 3]
(既定値) | 3 要素ベクトル
近傍のサイズ。正の奇数の整数の 3 要素ベクトルとして指定します。
データ型: single
| double
| int8
| int16
| int32
| uint8
| uint16
| uint32
padopt
— パディング オプション
'symmetric'
(既定値) | 'zeros'
| 'replicate'
パディング オプション。以下のいずれかの値に指定します。
値 | 説明 |
---|---|
'symmetric' | 配列自体の鏡像で配列をパディング |
'replicate' | 境界の要素の繰り返しによる配列のパディング |
'zeros' | 配列の 0 でパディング |
データ型: char
| string
バージョン履歴
参考
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)