fullseye

merit_default — OPTICS lensmerit op

使い方

既定のメリット関数をオペランド表として組む: 瞳全体の光線行 + EFL の保持(table)。

One group row per field and wavelength: kind="spot" is TRAN (transverse ray aberrations, mm), kind="wavefront" is OPDW (OPD, waves); reference "chief" measures from the chief ray (for the wavefront: the OPD as it is, relative to the chief ray) and "centroid" from the centroid of the spot (for the wavefront: the mean OPD removed). The pupil is hexapolar with rings rings out to pupil_fill. The row weight is sqrt(field_weight x wavelength_weight) (default 1). The EFL hold is an EFFL row with target efl_target (default the starting EFL; False for none) and weight efl_weight / |target|; the default efl_weight is 10 sqrt(n_rays) for the spot and 100 sqrt(n_rays) for the wavefront. For kind="spot", reference="chief" the total equals lensopt.merit_function on the same pupil.

Returns {"operands", "fields", "wavelengths", "kind", "reference", "rings", "pupil_fill", "efl_target", "efl_weight", "n_rays"}; pass it (or its "operands" with fields= and wavelengths=) to the other ops.

Example::

m = merit_default(lens, kind="wavefront", rings=3)
merit_evaluate(lens, m)["merit"]

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

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

詳しい使い方ガイド

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

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

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

abcd_matrix · wavefront_stats · sfr_from_edge · paraxial_trace · seidel_coefficients · spot_stats · tolerance_analysis · wavefront_from_opd

同カテゴリ(lensmerit)

merit_operands_list · merit_evaluate · merit_boundary_operands · optimize_lens_operands · merit_contributions


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

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