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