ellipsoid

ellipsoid

skimage.draw.ellipsoid(a, b, c, spacing=(1.0, 1.0, 1.0), levelset=False) [source]

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

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 spacing. Boolean dtype unless levelset=True, in which case a float array is returned with the level set above 0.0 representing the ellipsoid.

doc_scikit_image
2017-01-12 17:20:51
Comments
Leave a Comment

Please login to continue.