rmslivers
polyshape
の境界の外れ値を削除
説明
例
境界の外れ値
多角形から外れ値の境界点を削除し、突出している (アンテナのような) 不要な部分を除去します。
polyin = polyshape([0 0 2 2 1.0001 1 0.9999],[2 0 0 2 2 10 2]); plot(polyin) xlim([-0.5 2.5]) ylim([-2 12])
polyout = rmslivers(polyin,0.001); plot(polyout) xlim([-0.5 2.5]) ylim([-2 12])
入力引数
polyin
— 入力 polyshape
スカラー | ベクトル | 行列 | 多次元配列
入力 polyshape
。スカラー、ベクトル、行列または多次元配列として指定します。
データ型: polyshape
tol
— 外れ値の許容誤差
スカラー
外れ値の許容誤差。スカラーとして指定します。入力 polyshape
が配列の場合、rmslivers
は tol
に従って配列の各要素から外れ値を削除します。
データ型: double
| single
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
詳細
外れ値の許容誤差
外れ値の許容誤差は、多角形の領域にある頂点の相対距離の許容比率を指定します。たとえば、次の図で、指定された許容誤差 tol について である場合、rmslivers
は頂点 v を削除しません。 である場合、rmslivers
は v を削除し、突出している部分を除去します。
拡張機能
C/C++ コード生成
MATLAB® Coder™ を使用して C および C++ コードを生成します。
使用上の注意事項および制限事項:
コード生成用に動的メモリ割り当てを有効にしなければなりません。
バージョン履歴
R2017b で導入
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)