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 未満の場合。
• 샘플 데이터 카탈로그(DL URL / 라이선스) —— 2-D 는 skimage.data(BSD/public)+ 합성, 3-D 는 실데이터 소스(Stanford/PDS 등)의 DL URL.
• 연산자의 내력·참고문헌 —— 이 연산자 족의 바탕이 된 연구/기법의 출처.
• 알고리즘의 정전(저자·연도)과 용도는 위의 패밀리 사용 가이드에 적혀 있습니다.
• astro_stacking — py -3.11 examples/astro_stacking.py
table 를 입력으로 받는 것)—
quality)*Provenance: astrostack.py — ASTROSTACK 연산자 레지스트리. 이 op 노트는 tools/opdocs.py md 가 자동 생성합니다(직접 편집하지 마세요).*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.