read.contours.dicom: Read contours from DICOM file

View source: R/vois-functions.R

read.contours.dicomR Documentation

Read contours from DICOM file

Description

Read the contours from a DICOM file and return a contours data frame. The CT data is also mandatory to identify the slice for each contour polygon. The CT data can be specified with one of the following: folder.CT.dicom, CT or z.CT. z.CT has precendence to CT that has precendence to folder.CT.dicom.

Usage

read.contours.dicom(file.contours.dicom, folder.CT.dicom = NULL,
  CT = NULL, z.CT = NULL, tissue = "R3PIDEd0.2v0+MKM")

Arguments

file.contours.dicom

the name of the contours file

folder.CT.dicom

the name of the DICOM CT folder. The CT is needed to properly identify the slice for each contour polygon.

CT

the CT object (alternative to folder.CT.dicom and z.CT)

z.CT

a vector for the z coordinates of the slices of the reference CT (alternative to folder.CT.dicom and CT)

Value

A contours dataframe consisting of:

id

index of the contours

polygon

index of the polygon

slice

index of the slice

x,y,z

x,y,z coordinates

contour

contour (VOI) name

tissue

tissue+biological model name

type

contour type (target, OAR, etc.)

colour

the hex specification of the colour associated to the contour.

See Also

Other R/W Contours: read.contours, write.contours


planit-group/Rplanit documentation built on Dec. 5, 2022, 11:10 p.m.