annotate3d_arrow — 3D annotate3d op

Data kinds: image2dimage2d

Call: import fullseye as fs; fs.ledger.annotate3d_arrow(img, p0, p1, pose, K, depth=None, color='emphasis', width=2, head_len=12.0, head_width=9.0, occlusion_tol=0.01, scheme='okabe_ito') (to call the implementation directly, import annotate3d; annotate3d.annotate3d_arrow(img, p0, p1, pose, K, depth=None, color='emphasis', width=2, head_len=12.0, head_width=9.0, occlusion_tol=0.01, scheme='okabe_ito'); from the registry, ops3d.get("annotate3d_arrow"))

Usage

Returns an image (image2d): a projected arrow drawn from 3-D `p0 to p1`.

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

`depth` を渡し両端とも隠れているなら破線で描く(矢じりは半透明)。

Raises

------

ValueError

端点がカメラの後ろ / 一致 / 両端とも画像の外、姿勢・K の不正。

手順: `img を float64 [0, 1] の複製にし((H, W) / (H, W, C)`、C は

1/3/4。非有限・空は `ValueError)、p0, p1annotate3d_project` と

同じ射影で画素にして、`annotate.arrowp0 の画素から p1` の画素へ

矢印を描く。矢じりは `p1` 側。

引数:

• `p0, p1: object 座標 (3,)(有限)。pose` は 4x4 object→camera か

`(R, t)K` は 3x3(-Z を見る render3d 慣習)。

• `depth: (H, W) 前方距離画像(render3d.render_meshdepth`)。

画像と同じ形でなければ `ValueError`。

• `color: 役割名("emphasis" など、scheme` のパレットで解決)か RGB。

• `width: 線幅 [px]、1 以上の整数(1.5` は拒否)。

• `head_len / head_width`: 矢じりの長さ・幅 [px]。隠れ描画では矢印長の

80 % を超えないよう縮める。

• `occlusion_tol: [0, 1)`。

返り値: 描画済みの新しい画像(float64、入力と同じ形。入力は変更しない)。

エラーになる条件(実装どおり): どちらかの端点が `z <= 1e-9`(カメラ面上/後ろ)/

2 点が同じ画素に射影される(視線上に並ぶ、長さ 1e-9 px 未満)/ 姿勢・`K` の不正。

画像の外に出た端点はエラーにしない(`annotate.arrow` が枠外まで線を引く

だけ。片方が枠内なら見た目は途中で切れる)。

使いどころ: `render3d.render_mesh` の画像に「この頂点がこれ」を示す。長さを

数値で示すなら `annotate3d_measure、文字を添えるなら annotate3d_label`。

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.

Runnable examples (verified samples that actually call this op)

annotate3d_figurepy -3.11 examples_3d/annotate3d_figure.py

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

fuse_to_voxel · fit_poly_surface · eval_poly_surface · surface_form_error · background_flatten · polar_unwrap · fit_zernike · matcap_shade

Same category (annotate3d)

annotate3d_project · annotate3d_label · annotate3d_scale_bar · annotate3d_axes · annotate3d_bbox · annotate3d_measure


*Provenance: annotate3d.py — 3D 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.