volshowの「3-D ハサミでトリミング」機能はコマンドから設定できますか?
3 views (last 30 days)
Show older comments
MathWorks Support Team
on 19 Sep 2025 at 0:00
Answered: MathWorks Support Team
on 19 Sep 2025 at 2:33
volshow画面右上にある「3-D ハサミでトリミング」機能を使い、任意の平面で断面図を表示しています。
この断面図を画像として保存したいと考えていますが、CT画像が大量にあるため、コマンドラインからバッチ処理で実行したいです。
コマンドで「ハサミを使ったトリミング機能」と同様に、任意の平面を指定することは可能ですか?
Accepted Answer
MathWorks Support Team
on 19 Sep 2025 at 0:00
コマンドラインから「3-D ハサミでトリミング」機能と同等の断面表示を設定できます。
具体的には、viewer3d 関数の ClippingPlanes プロパティを利用することで、任意の平面を数値で指定し、断面表示を自動化できます。
この方法はバッチ処理にも適しており、多数のCT画像に対して同じ処理を効率的に行うことが可能です。
使用例:
% サンプルのボリュームデータをロードする
load mri
V = squeeze(D);
% viewer3dコマンドで ClippingPlanes プロパティを与えて Viewerオブジェクトを作成
viewer = viewer3d('ClippingPlanes', [-0.8625, -0.4932, -0.1138, 101.3518]);
% Parent に Viewerオブジェクトを指定して volshow を使って表示
vs = volshow(V,Parent=viewer)
0 Comments
More Answers (0)
See Also
Categories
Find more on 基本的な表示 in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!