Creates a point set or a polygon (ordered set of xy coordinates) resulting as the projection on the same plane of polygons in all slices.

seg_projection_add(
  name,
  structures,
  segmentation,
  planes_chosen = NULL,
  make_polygon = TRUE
)

Arguments

name

a character containing the name of the maximum projection slot

structures

a character containing one or more structure IDs

segmentation

a segmentation class object

planes_chosen

a character vector indicating which planes should be used to draw the projection. Default is NULL, using all planes

make_polygon

logical, should the resulting polygon be created? Default is TRUE

Value

a segmentation object containing a maximum projection slot as a segPointSet object, with 2 views per selected plane.