Gets the elemental size of a voxel (dx, dy, dz) in meter.

getVoxelSize(vxsp)

# S4 method for VoxelSpace
getVoxelSize(vxsp)

Arguments

vxsp

the VoxelSpace object.

Value

the size of the voxel in meter, as a numerical vector.

Examples

# load a voxel file
vxsp <- readVoxelSpace(system.file("extdata", "tls_sample.vox", package = "AMAPVox"))
# retrieve voxel size
getVoxelSize(vxsp)
#>   x   y   z 
#> 0.5 0.5 0.5