fullseye

optscene_instances — OPTICS scene op

使い方

欠陥を個体ごとに返す(クラス・画素マスク・bounding box・面積)。

1 枚の合成マスクだけでは個体を分けられず、検出や計数の学習には使えない。 連結成分で分け、min_area_px 未満は落とす(1 画素の粒までは数えない)。

返り値は 1 個体あたり dict: kind(クラス)/ mask(H, W の bool)/ bbox(x0, y0, x1, y1 の画素座標、右下は含む)/ area_px / source (surface = 面に貼った欠陥 / object = 置かれた異物)。

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

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

詳しい使い方ガイド

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

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

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

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

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

同カテゴリ(scene)

scene_material · scene_plane · scene_sphere · scene_box · scene_cylinder · surface_defect · surface_finish · random_defects


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

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