EllipAn
EllipAn(
positions,
a_in,
b_in,
a_out,
b_out,
*,
theta_in=0.0,
theta_out=None,
validate=True,
)Elliptical annulus in pixel coordinates.
Parameters
positions : tuple or array - like-
Annulus center or centers as
(x, y)pixel coordinates. Multiple centers are accepted as an(N, 2)array-like object. a_in : float-
Inner ellipse semiaxes in pixels.
b_in : float-
Inner ellipse semiaxes in pixels.
a_out : float-
Outer ellipse semiaxes in pixels. Each outer axis must be at least the corresponding inner axis, and at least one outer axis must be larger.
b_out : float-
Outer ellipse semiaxes in pixels. Each outer axis must be at least the corresponding inner axis, and at least one outer axis must be larger.
theta_in : float = 0.0-
Inner and outer rotation angles in radians, measured counterclockwise from the positive x axis. If
theta_outisNone, it defaults totheta_in. theta_out : float = 0.0-
Inner and outer rotation angles in radians, measured counterclockwise from the positive x axis. If
theta_outisNone, it defaults totheta_in. validate : bool = True-
If
False, skip input validation and assume finite, positive geometry, ordered axes, and normalized positions.
Methods
| Name | Description |
|---|---|
| bboxes | Override the default python for-loop with a Rust-accelerated batch function. |
bboxes
EllipAn.bboxes()Override the default python for-loop with a Rust-accelerated batch function.