Get a mesh or voxel data for a given bodyid, from a DVID
server. Meshes are made via alphashapes, using the function
alphashape3d::ashape3d, which will work poorly if scale is too low,
and slowly if scale is too high.
dv_get_voxels(bodyid, scale = 4, df = FALSE, conn = NULL, ...) dv_get_mesh( bodyid, scale = 4, conn = NULL, use.surface.voxels = TRUE, k = 10, ... )
| bodyid | a body ID for a neuron or segmentation hosted on a DVID server |
|---|---|
| scale | Resolution of sparse volume starting with 0 where each level beyond 0 has 1/2 resolution of previous level. "coarse" will return the volume in block coordinates. |
| df | if TRUE, a data frame with meta data for the neuron is also
retrieved, collected by |
| conn | optional DVID connection object (see |
| ... | Additional arguments passed to dv_fetch |
| use.surface.voxels | if TRUE, surface voxels as estimated as points that do not have at least k other points within 2*voxelsize of them |
| k | see use.surface.voxels |
a mesh3