CircAp

CircAp(positions, r, *, validate=True)

Circular 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. Coordinates are copied into owned, read-only float64 storage. Editing the input does not move the aperture; construct a new aperture to change centers. The positions attribute cannot be reassigned. C-order, Fortran-order, and strided inputs are accepted. Input (x, y) gives scalar sums; [(x, y)] gives length-one vector sums.

r : float

Aperture radius in pixels.

validate : bool = True

If False, skip input validation and assume finite, positive geometry and finite positions with shape (2,) or (N, 2). Coordinates are still copied and converted to float64. This is intended for expert high-throughput code paths.

Methods

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

bboxes

CircAp.bboxes()

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