RectAp

RectAp(positions, w, h, theta=0.0, *, validate=True)

Rotated rectangular aperture in pixel coordinates.

Parameters

positions : tuple or array - like

Aperture center or centers as (x, y) pixel coordinates. Multiple centers are accepted as an (N, 2) array-like object.

w : float

Full rectangle width and height in pixels. w is measured along the rectangle’s local x axis, and h along its local y axis. At theta=0, the width axis is aligned with the image x axis and the height axis is aligned with the image y axis.

h : float

Full rectangle width and height in pixels. w is measured along the rectangle’s local x axis, and h along its local y axis. At theta=0, the width axis is aligned with the image x axis and the height axis is aligned with the image y axis.

theta : float = 0.0

Rotation angle in radians, measured counterclockwise from the positive image x axis to the rectangle’s local width axis.

validate : bool = True

If False, skip input validation and assume finite, positive geometry and normalized positions.

Methods

Name Description
bboxes Override the default python for-loop with a Rust-accelerated batch function.

bboxes

RectAp.bboxes()

Override the default python for-loop with a Rust-accelerated batch function.