Prune neuron within neuropil volume

prune_in_volume(x, brain = nat.flybrains::FCWBNP.surf,
  neuropil = "LH_R", invert = TRUE, ...)

# S3 method for neuron
prune_in_volume(x, brain = nat.flybrains::FCWBNP.surf,
  neuropil = "LH_R", invert = TRUE, ...)

# S3 method for neuronlist
prune_in_volume(x,
  brain = nat.flybrains::FCWBNP.surf, neuropil = "LH_R",
  invert = TRUE, ...)

Arguments

x

a neuron object

brain

The hxsurf object containing the neuropil of interest, e.g. FCWBNP.surf

neuropil

Character vector specifying the neuropil

invert

Logical when TRUE indicating that points outside the

...

Additional arguments for methods (eventually passed to prune.default) surface should be pruned.

Details

Prune neuron inside subvolume of a segmented brain object.