fullseye

ensquared_energy — OPTICS imaging op

使い方

Ensquared energy of a point-spread function: the fraction of the energy inside a square of half-width w.

The detector-pixel version of encircled energy: how much of the spot falls inside a square pixel (side 2 w) centred on it. The square is axis-aligned with the array and centred like :func:encircled_energy (same centre options). The edge pixels are weighted by the exact overlap, so the curve is exact for a PSF that is constant across each pixel.

Returns a (samples, 2) float64 pairs array: column 0 the half-width in micrometres (the pixel side is twice that), column 1 the fraction of the array’s energy inside, non-decreasing in [0, 1].

Ground truth it reproduces: a square pupil of side D has the separable PSF sinc^2(D x / (lambda z)) sinc^2(D y / (lambda z)), whose ensquared energy is S(a)^2 with S(a) = (2/pi) (Si(2 pi a) - sin^2(pi a) / (pi a)) and a = w / (lambda N) (checked in tests/test_optdesign_psf_metrics.py).

Raises ValueError: as :func:encircled_energy (with max_half_width_um).

ファミリ共通の入力契約(fail-closed)

optics の全 op は入力を検証してから計算する(黙って通さない):

詳しい使い方ガイド

背景知識ガイド(この op の手前にある物理・規約)

参考(サンプルデータ・文献)

実行できる例(この op を実際に呼ぶ検証済みサンプル)

型が繋がる次の op(pairs を入力に取れる)

mtf50 · energy_to_photons · spectral_product · spectral_integral · spectral_integral_table · spectral_stats · kubelka_munk_reflectance · hyperspectral_capture

同カテゴリ(imaging)

psf_to_mtf · mtf_diffraction · encircled_energy · energy_radii · mtf_tangential_sagittal · wavefront_stats · edge_spread · sfr_from_edge


Provenance: optics.py — OPTICS operator registry. この per-op ノートは tools/opdocs.py md が自動生成(手編集しない)。

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.