Subset a segmentation
class object to only contain certain structures
seg_sub_str(segmentation, structures, planes_chosen = NULL)
an object of class segmentation
a vector of character structure IDs
a vector of planes to be further subset. Defaults to NULL
, meaning the 3 anatomical planes will be considered.
A segmentation
class object containing only the structures defined in structures
and, optionally, the planes defined in planes_chosen
. The metadata are recompiled based on the new composition of the object.