このページの翻訳は最新ではありません。ここをクリックして、英語の最新版を参照してください。
createMask
dicomContours
オブジェクトからのボリューム マスクの作成
説明
は、3 次元 logical マスク BW
= createMask(rtContours
,ROIindex
,Spatial
)BW
を返します。これは、dicomContours
オブジェクト rtContours
における、ROIindex
で指定された ROI のボクセル表現です。ROIindex
は、密化する rtContours
の輪郭を指定します。Spatial
は、3 次元データの位置、解像度、および方向を指定します。
例
dicomContours オブジェクトのマスクの作成
dicomInfo
および imref3d
を使用して、dicomContours
オブジェクトのマスクを作成します。
DICOM-RT 構造体セットのメタデータを読み取ります。
info = dicominfo('rtstruct.dcm');
dicomContours
オブジェクトを構築します。
rtContours = dicomContours(info);
すべての ROI 情報を table として表示します。
rtContours.ROIs
ans=2×5 table
Number Name ContourData GeometricType Color
______ _________________ ___________ _____________ ____________
1 {'Body_Contour' } {90×1 cell} {90×1 cell} {3×1 double}
2 {'Tumor_Contour'} {21×1 cell} {21×1 cell} {3×1 double}
plotContours
を使用して、すべての ROI の輪郭をプロットします。このオブジェクト関数はワールド座標の輪郭をプロットします。このプロットを使用して、内部に密化マスクを作成する imref3d
オブジェクトのワールド座標の限界範囲を定義します。
plotContour(rtContours)
イメージが輪郭と同じスペースに収まるよう、plotContours
からのプロットと同じワールド座標範囲で imref3d
オブジェクトを作成します。
referenceInfo = imref3d([128,128,50],xlim,ylim,zlim);
rtContours
の 1 番目の輪郭 ('Body_Contour'
) の 3 次元 logical マスクを作成します。imref3d オブジェクトを指定します。
contourIndex = 1; rtMask = createMask(rtContours, contourIndex, referenceInfo);
ボリューム ビューアーを使用して、このマスクを表示します。
volshow(rtMask);
入力引数
rtContours
— DICOM 輪郭
dicomContours
オブジェクト
DICOM 輪郭。dicomContours
オブジェクトとして指定します。
データ型: dicomContours
ROIindex
— DICOM 輪郭オブジェクト内の ROI
整数 | char
配列 | string
スカラー
DICOM 輪郭オブジェクト内の ROI。dicomContours
オブジェクトに含まれる ROI table 内の数値または名前として指定します。
ROI 識別子 | 型 | 例 |
---|---|---|
Number | rtContours オブジェクトに含まれる ROI table 内の行を識別する整数。Number は ROI table の 1 列目です。 | rtMask = createMask(rtContours,1, spatialInfo) |
Name | rtContours オブジェクトに含まれる ROI table 内の ROI を識別する名前。char 配列または string スカラーとして指定します。Name は ROI table の 2 列目です。 | rtMask = createMask(rtContours,'Body_Contour',spatialInfo) |
データ型: single
| double
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
| char
| string
Spatial
— 空間参照情報
構造体 | imref3d
オブジェクト
空間参照情報。dicomreadVolume
によって返される Spatial
構造体または imref3d
オブジェクトとして指定します。空間参照情報は、3 次元座標データの位置、解像度、および方向を提供します。
データ型: struct
| imref3d
出力引数
BW
— logical マスク
3 次元 logical 配列
logical マスク。3 次元 logical 配列として返されます。
バージョン履歴
参考
dicomContours
| addContour
| dicominfo
| dicomreadVolume
| imref3d
| plotContour
| deleteContour
| convertToInfo
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)