skimage 0.17.2

ParametersReturns
ellipsoid(a, b, c, spacing=(1.0, 1.0, 1.0), levelset=False)

Parameters

a : float

Length of semimajor axis aligned with x-axis.

b : float

Length of semimajor axis aligned with y-axis.

c : float

Length of semimajor axis aligned with z-axis.

spacing : tuple of floats, length 3

Spacing in (x, y, z) spatial dimensions.

levelset : bool

If True, returns the level set for this ellipsoid (signed level set about zero, with positive denoting interior) as np.float64. False returns a binarized version of said level set.

Returns

ellip : (N, M, P) array

Ellipsoid centered in a correctly sized array for given :None:None:`spacing`. Boolean dtype unless :None:None:`levelset=True`, in which case a float array is returned with the level set above 0.0 representing the ellipsoid.

Generates ellipsoid with semimajor axes aligned with grid dimensions on grid with specified :None:None:`spacing`.

Examples

See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /skimage/draw/draw3d.py#5
type: <class 'function'>
Commit: