volshowの「3-D ハサミでトリミング」​機能はコマンドから設​定できますか?

6 visualizaciones (últimos 30 días)
MathWorks Support Team
MathWorks Support Team el 19 de Sept. de 2025
Respondida: MathWorks Support Team el 19 de Sept. de 2025

volshow画面右上にある「3-D ハサミでトリミング」機能を使い、任意の平面で断面図を表示しています。
この断面図を画像として保存したいと考えていますが、CT画像が大量にあるため、コマンドラインからバッチ処理で実行したいです。
コマンドで「ハサミを使ったトリミング機能」と同様に、任意の平面を指定することは可能ですか?

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 19 de Sept. de 2025
コマンドラインから「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)

Más respuestas (0)

Etiquetas

Aún no se han introducido etiquetas.

Productos


Versión

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!