mango.image.convex_hull_3d

mango.image.convex_hull_3d(input, inputmsk=None, outhull=None, inhull=None, copy=False, copyoutside=True)

Calculates 3D convex hull of non-masked voxels of an image. By default, returns an image where inside-hull-voxels have value inhull and outside-hull-voxels have value outhull.

Parameters:
  • input (mango.Dds) – Finds the convex hull of voxels which are not masked (masked voxels have value input.mtype.maskValue() or value inputmsk).
  • inputmsk (input.dtype or None) – Additional mask value to exclude voxels from convex-hull calculation. If None, inputmsk=input.mtype.maskValue() or if input doesn’t have an mtype attribute inputmsk=0.
  • outhull (input.dtype or None) – Value for voxels which lie outside the convex-hull. If None, outhull=input.mtype.maskValue() or if input doesn’t have an mtype attribute outhull=0.
  • inhull (input.dtype or None) – Value for voxels which lie inside the convex-hull. If None, inhull=1.
  • copy (bool) – If True, returns a copy of the input image with the outside-hull voxels (copyoutside=True) set to outhull.
  • copyoutside (bool) – If True (and copy=True), the returned image is a copy of the input image with the outside-hull voxels set to outhull. If False (and copy=True), the returned image is a copy of the input image with the inside-hull voxels set to inhull.

Previous topic

mango.image.convex_hull_2d

Next topic

mango.image.distance_transform_edt

This Page