このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
getAxesHandles
説明
は、[hXY hYZ hXZ]
= getAxesHandles(s
)orthosliceViewer
オブジェクト s
内のイメージ ボリュームの各ビューを含む座標軸を返します。
例
直交スライス ビューアーを使用した MRI データ スライスの GIF の作成
MRI データを読み込み、直交スライス ビューアーで表示します。
load(fullfile(toolboxdir('images'),'imdata','BrainMRILabeled','images','vol_001.mat')); s = orthosliceViewer(vol);
スライスを含む座標軸のハンドルを取得します。
[hXYAxes, hYZAxes, hXZAxes] = getAxesHandles(s);
可視性を向上させるために十字をオフにします。
set(s,'CrosshairEnable','off');
GIF ファイルの名前を指定します。
filename = 'animatedYZSlice.gif';
所要の方向のスライス番号の配列を作成します。YZ 方向を考えます。
sliceNums = 1:240;
ループ処理を使用して、指定したスライス位置でイメージを作成します。
for idx = sliceNums % Update X slice number to get YZ Slice. s.SliceNumbers(1) = idx; % Use getframe to capture image. I = getframe(hYZAxes); [indI,cm] = rgb2ind(I.cdata,256); % Write frame to the GIF File. if idx == 1 imwrite(indI,cm,filename,'gif','Loopcount',inf,'DelayTime',0.05); else imwrite(indI,cm,filename,'gif','WriteMode','append','DelayTime',0.05); end end
アニメーション GIF を表示します。
入力引数
s
— 直交スライス ビューアー
orthosliceViewer
オブジェクト
直交スライス ビューアー。orthosliceViewer
オブジェクトとして指定します。
出力引数
[hXY hYZ hXZ]
— 直交スライス ビューアーの座標軸
Axes
オブジェクトの 1 行 3 列のベクトル
直交スライス ビューアーの座標軸。Axes
オブジェクトの 1 行 3 列のベクトルとして返されます。
バージョン履歴
R2019b で導入
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)