Learn R Programming

VoxR (version 0.5.1)

sub.obj: Substraction of two voxel coulds

Description

Isolation of unique voxels to one of two voxel clouds based on the detection of isolated voxels within a voxels of bigger dimmensions.

Usage

sub.obj(data1, data2, res, nvox.reaserch)

Arguments

data1
a data frame containing the x, y, z, ... coordinates of a point cloud from which "data2" will be substracted
data2
a data frame containing the x, y, z, ... coordinates of a point cloud to substract to "data1"
res
numeric specification of the resolution of the voxels (in the scale of the original coordinate system)
nvox.reaserch
numeric specifying as a factor the resolution of the research's voxel (nvox.reasearch * res)

Value

A data frame containing the x, y, z coordinates of the voxels unique to data1

Examples

Run this code
#- importing 2 data dets
data(data1)
data(data2)

#- substraction of data2 to data1

sub <- sub.obj(data1,data2,res=0.5,nvox.reaserch=1)

#-visualisation

require(rgl)
library(rgl)
open3d()
plot3d(sub,col="red",add=TRUE)
plot3d(data2,add=TRUE)

Run the code above in your browser using DataLab