quality op• 数据种类:image2d → table
• 调用:import astrostack; astrostack.frame_quality(image, threshold_sigma=5.0, max_stars=25, min_separation=3, psf_box=11, n_score_stars=5)(或 opsastrostack.get("frame_quality"))
给单帧打分 —— 锐度、FWHM、背景、圆度,以及用于筛选的分数。
> 以下的详细说明为原文 —— 摘要与标题已翻译。
lucky imaging の選別基準は歴史的に 「基準星のピーク強度」 である
(Law, Mackay & Baldwin, *Lucky imaging: high angular resolution imaging in
the visible from the ground*, A&A 446, 739 (2006))—— 大気が良い瞬間ほど
同じ総フラックスが少ない画素に集まるので、`ピーク / 総フラックス` が
上がる。ここでもそれを採り、追尾の伸びを弾くために真円度を掛ける::
score = median(roundness) * median(peak_fraction)
`peak_fraction は明るい方から n_score_stars` 個の星について
`(ピーク画素 - 背景) / 開口フラックス`。尺度に依らない(露出時間や
ゲインを変えても動かない)ので、フレーム間の比較にそのまま使える。
`sharpness` は別に、ラプラシアンの分散を画像の分散で割った古典的な
合焦指標(Pech-Pacheco et al., *Diatom autofocusing in brightfield
microscopy*, ICPR 2000)。星の数が変わると動くので選別には使わないが、
星が 1 つも無いフレームでも値が出る唯一の指標なので残してある。
Returns dict(`table 語彙)。キーは n_stars / background` /
`noise_sigma / fwhm_px(検出星の FWHM 中央値)/ roundness` /
`peak_fraction / peak_snr / sharpness / score` /
`total_flux。星が 1 つも無いときは星由来の値が nan、score` は
`0.0(「選ばない」が正しい答えなので、nan` で並べ替えを壊さない)。
Raises `ValueError`: 2-D でない / 非有限を含む / *n_score_stars* が
1 未満の場合。
• 示例数据目录(下载 URL / 许可证) —— 2-D 用 skimage.data(BSD/公有领域)加合成图,3-D 给出真实数据源(Stanford/PDS 等)的下载 URL。
• 算子来历与参考文献 —— 该算子族所依据的研究/方法出处。
• 算法的正典(作者・年份)与用途见上面的族使用指南。
• astro_stacking — py -3.11 examples/astro_stacking.py
table 作为输入)—
quality)*Provenance: astrostack.py — ASTROSTACK 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.