fullseye

calibration_views — OPTICS imaging_sim op

使い方

Synthetic camera-calibration views of a planar target through the designed lens (table).

A chessboard-like grid of target = (cols, rows, pitch_mm) corner points on the plane z = 0 is placed at each of poses(rx_deg, ry_deg, rz_deg, tx_mm, ty_mm, tz_mm) in the camera frame (camera at the origin looking along +z; default: five poses, frontal and ±20° about x and y, at distance_mm — default the distance at which the target spans 60 % of the sensor width) — projected by a pinhole of the prescription’s EFL and then displaced by the lens’s real radial distortion (the polynomial :func:distortion_map fits from traced chief rays), and expressed as (row, col) pixels on an image_size sensor of pixel_pitch_um. Optional Gaussian corner-detection noise noise_px (deterministic for seed).

Returns object_points (N,2) mm on the target plane, image_points (a list of (N,2) (row, col) arrays — exactly what calib.camera_calibration consumes), K_true (fx = fy = EFL/pitch px, cx, cy at the sensor centre), the distortion polynomial, the poses, and per view the fraction of points that landed on the sensor. Views with fewer than four visible points, a target behind the camera, or an afocal prescription are ValueError.

The point of the op is the closed loop: feed the output to calib.camera_calibration and compare the recovered intrinsics with K_true — for a distortion-free lens (the paraboloid) Zhang’s method returns the EFL to 1e-6, and the singlet’s barrel distortion shows up as a focal-length bias and a non-zero reprojection RMS, so the calibration module is checked end to end against a lens whose truth is known, and a real chart can be judged against the same numbers.

ファミリ共通の入力契約(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

同カテゴリ(imaging_sim)

psf_from_opd · distortion_map · render_through_lens · defect_dataset


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

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