crop_point_set: crop_point_set

View source: R/utils.R

crop_point_setR Documentation

crop_point_set

Description

Retain points in the set that are within the given distance from the geometric median of the set. Using the geometric median is more robust than using the centre of mass (i.e. mean).

Usage

crop_point_set(point.set, size)

Arguments

point.set

a point set as a matrix with columns x,y,z.

size

vector of distances from the geometric median of the points along each axis. Points are discarded if they are outside the ellipsoid defined by size and centred on the geometric median of the points.

Value

point set as a matrix with columns x,y,z.


LOMAR documentation built on March 18, 2022, 6:05 p.m.