camera_calibration — CALIB calibrate op

• Data kinds: keypoints → table

• Call: import fullseye as fs; fs.ledger.camera_calibration(object_points, image_points_list) (to call the implementation directly, import calib; calib.camera_calibration(object_points, image_points_list); from the registry, opscalib.get("camera_calibration"))

• HALCON equivalent: camera_calibration (the HALCON reference is a useful guide to its meaning and parameters)

• GPU: none (CPU reference implementation only)

Usage

[Partial] Estimates only the intrinsic matrix K from several views of a planar target by Zhang's method (camera_calibration).

> The detailed description below is the original text — the summary and the headings are translated.

する: Zhang の閉形式で K(fx, fy, cx, cy, skew)を求める。視点不足・退化・非有限は ValueError。

しない: レンズ歪みの推定と、K・歪み・外部パラメータの同時の非線形最適化(HALCON の camera_calibration の仕事)。歪みは camera.estimate_distortion で別に求める。HALCON 対応の数え方では「部分対応」で、対応済みには数えない(halcon_coverage.PARTIAL)。

[Partial HALCON analogue] Closed-form K only; no distortion, no joint non-linear refinement.

object_points: (N,2) 平面ターゲット座標 (x, y)(z=0 平面、ワールド単位)。image_points_list: 各視点の (N,2) 画素対応。(row, col) — このモジュールの他 API(project_3d_point の戻り値、image_points_to_world_plane の入力)と同じ規約。内部で (x=col, y=row) に並べ替えてから解くので、fx/cx は col 軸、fy/cy は row 軸の値になる(2026-09-02 以前は (x,y) として扱っており fx↔fy, cx↔cy が入れ替わっていた)。

fail-closed: 視点が 3 未満、すべての視点が正面平行(回転不足)で解が定まらない、または K が非有限/非正になる場合は ValueError(NaN を返さない)。戻り値の homographies は (x,y)→(x=col,y=row) の 3x3、reproj_rms は各視点のホモグラフィ再投影 RMS [px] (対応づけの健全性チェックに使う)。

orientation_rank_ratio は視点の向きが内部パラメータをどれだけ拘束しているか(sv[-2]/sv[0]、大きいほど良い)。再投影誤差は配置の良し悪しを映さない —— 2026-09-06 の実測で、同じ 10 視点・同じ雑音 0.05 px で板の傾きだけを 32 度から 2 度に変えると、再投影 RMS は 0.0690 と 0.0688 で比 1.00 倍のまま、fx の誤差は 0.026 % から 7.33 %(281 倍)になった。この比のほうは 129 倍動く。ただし歪み補正前の点では意味を持たない (下の門の注記を見よ)。

Detailed usage guide

• camera_calibration family guide

References (sample data, literature)

• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).

• Operator provenance and references — the sources of the research/methods this op family came from.

• The canonical algorithm (author, year) and its uses are named in the family usage guide above.

Runnable examples (verified samples that actually call this op)

• camera_intrinsics_calibration — py -3.11 examples/camera_intrinsics_calibration.py

• lens_calibration_loop_demo — py -3.11 examples/lens_calibration_loop_demo.py

• poc_calibration_truth_map — py -3.11 examples/poc_calibration_truth_map.py

• poc_camera_calibration — py -3.11 examples/poc_camera_calibration.py

Ops the type connects to (they accept table as input)

image_points_to_world_plane · contour_to_world_plane_xld · sim_caltab · disp_caltab · calibration_error_map · calibration_uncertainty_map · calibration_next_pose

Same category (calibrate)

find_marks_and_pose · hand_eye_calibration · camera_calibration_lm · stereo_calibration_lm


*Provenance: calib.py — CALIB operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*

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