Renders a slice from a plane of a segmentation as a data frame
seg_get_slice(segmentation, plane, slice, fill = FALSE)
a segmentation
class object.
character, name of the plane (one of `sagittal`, `coronal`, or `axial`)
numeric or character, the slice number. If numeric, it will be used as index of the slice. If character, it will be the slice as named in the segmentation.
logical, should the function return just the polygon vertices or all voxels? Default is FALSE
.
a `data.frame` containing the x y coordinates for all points within the slice (filled polygons)