isTranslation
幾何学的変換が純粋な平行移動かどうかの判別
説明
例
2 次元変換が純粋な平行移動かどうかのチェック
純粋な平行移動を定義する affine2d
オブジェクトを作成します。
A = [ 1 0 0 0 1 0 40 40 1 ]; tform = affine2d(A)
tform = affine2d with properties: T: [3x3 double] Dimensionality: 2
変換が純粋な平行移動かどうかをチェックします。
tf = isTranslation(tform)
tf = 1
3 次元変換が純粋な平行移動かどうかのチェック
次元ごとに異なる倍率を定義する affine3d
オブジェクトを作成します。
Sx = 1.2; Sy = 1.6; Sz = 2.4; tform = affine3d([Sx 0 0 0; 0 Sy 0 0; 0 0 Sz 0; 0 0 0 1]);
tf = affine3d with properties: T: [4x4 double] Dimensionality: 3
変換が純粋な平行移動かどうかをチェックします。tform
はオブジェクトをスケールするので、
tf = isTranslation(tform)
tf = 0
予想どおり、スケーリングによって入力ボリュームのサイズと形状が変更されるため、変換は純粋な平行移動ではありません。
入力引数
出力引数
TF
— 幾何学的変換が純粋な平行移動
true
| false
幾何学的変換が純粋な平行移動。true
または false
として返されます。
データ型: logical
詳細
平行移動変換
平行移動変換は、イメージのサイズ、形状、または方向を変更することなく、イメージをシフトします。2 次元平行移動は、以下の形式の行列 T
によって表されます。
[1 0 0; 0 1 0; e f 1];
3 次元平行移動は、以下の形式の行列によって表されます。
[1 0 0 0; 0 1 0 0; 0 0 1 0; j k l 1];
バージョン履歴
R2013a で導入
参考
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)