read.contours: Read contours from file

View source: R/vois-functions.R

read.contoursR Documentation

Read contours from file

Description

Read the contours from a "*.contours" file format (PlanKIT format) and return a contours dataframe.

Usage

read.contours(file.contours, file.CT = NULL, CT = NULL, z.CT = NULL)

Arguments

file.contours

the name of the contours file

file.CT

the name of the CT file. The CT file (in PlanKIT format) is needed to properly reconstruc the 3D coordinates of the contours (alternatively to CT and z.CT)

CT

the CT object (alternatively to file.CT and z.CT)

z.CT

a vector for the z coordinates of the slices of the reference CT (alternatively to file.CT 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.)

See Also

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


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