vector_to_shift — REPRCONV algebra op

Data kinds: vectorshift

Call: import reprconv; reprconv.vector_to_shift(vector) (or opsreprconv.get("vector_to_shift"))

Usage

A `vector (3,) → an integer shift (dz, dy, dx). The other direction of :func:shift_to_vector`.

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

不可逆(最近接整数へ丸める)。落ちる量は丸め残差そのもので、

`|v - round(v)| <= 0.5` が各軸の上界。整数を渡した往復だけが bit 一致する。

Args:

vector: (3,)。

Returns:

3-tuple の int。

Raises:

ValueError: (3,) でない / 非有限。

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)

representation_conversionpy -3.11 examples/representation_conversion.py

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

shift_to_vector

Same category (algebra)

angle_to_matrix · matrix_to_angle · rot_scale_to_matrix · matrix_to_rot_scale · shift_to_vector · cscalar_to_polar · polar_to_cscalar · countrate_to_counts


*Provenance: reprconv.py — REPRCONV 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.