skimage 0.17.2

ParametersReturns
_ellipse_in_shape(shape, center, radii, rotation=0.0)

Parameters

shape : iterable of ints

Shape of the input image. Must be at least length 2. Only the first two values are used to determine the extent of the input image.

center : iterable of floats

(row, column) position of center inside the given shape.

radii : iterable of floats

Size of two half axes (for row and column)

rotation : float, optional

Rotation of the ellipse defined by the above, in radians in range (-PI, PI), in contra clockwise direction, with respect to the column-axis.

Returns

rows : iterable of ints

Row coordinates representing values within the ellipse.

cols : iterable of ints

Corresponding column coordinates representing values within the ellipse.

Generate coordinates of points within ellipse bounded by shape.

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/draw.py#11
type: <class 'function'>
Commit: