Learn R Programming

LOMAR (version 0.5.0)

points_from_roi: points_from_roi

Description

Extract points within given bounding box. Points are translated so that (0,0,0) correspond to the bounding box corner defined by roi['min',c('x','y','z')]

Usage

points_from_roi(points, roi)

Value

a data frame with same columns as input

Arguments

points

a point set as a data frame of coordinates with columns x,y,z.

roi

a data frame with columns x,y,z and rows min and max defining a bounding box