code: def neurite_volume_density(neurites, neurite_type=NeuriteType.all):
      '''Get the volume density per neurite
  
      The volume density is defined as the ratio of the neurite volume and
      the volume of the neurite's enclosing convex hull
      '''
      def vol_density(neurite):
          '''volume density of a single neurite'''
          return neurite.volume / convex_hull(neurite).volume
  
      return list(vol_density(n)
                  for n in iter_neurites(neurites, filt=is_type(neurite_type))f neurite_volume_density(neurites, neurite_type=NeuriteType.all):
      '''Get the volume density per neurite
  
      The volume density is defined as the ratio of the neurite volume and
      the volume of the neurite's enclosing convex hull
      '''
      def vol_density(neurite):
          '''volume density of a single neurite'''
          return neurite.volume / convex_hull(neurite).volume
  
      return list(vol_density(n)
                  for n in iter_neurites(neurites, filt=is_type(neurite_type)))
docs: Get the volume density per neurite
  
      The volume density is defined as the ratio of the neurite volume and
      the volume of the neurite's enclosing convex hull