tb_rgb_to_quaternion — 2D typed op

Datenarten: rgbimageqimage

Aufruf: fullseye.apply(img, "tb_rgb_to_quaternion", a=0.5, b=0.5) (das 2-D-Modell ist ein Bild plus zwei skalare Regler a,b∈[0,1])

*Keine Abbildung: dieser Op nimmt rgbimage als Eingabe. Ein Studio-Programm, das bei einem Bild beginnt, erreicht diesen Typ nicht — siehe die lauffähigen Beispiele unten.*

Verwendung

Einbettung eines Farbbilds als reine Quaternionen `0 + R i + G j + B k`. → (H, W, 4).

> Die ausführliche Beschreibung unten ist der Originaltext — Zusammenfassung und Überschriften sind übersetzt.

Sangwine's 1996 encoding, and the entry point of the whole colour half of

this module: once a pixel is a quaternion, `q x conj(q)` rotates its colour

and :func:qft2 transforms the three channels as one hypercomplex signal

instead of three unrelated real ones.

The scalar (`w`) component is set to exactly zero — a *pure* quaternion —

because that is what makes the conjugation a 3-D rotation. Values are not

clamped: linear RGB after black-level subtraction legitimately goes negative,

and clipping it would change the colour direction, which is the quantity

every operator downstream reads.

Raises `ValueError: *image_rgb* is not a finite (H, W, 3)` numeric

array, is complex / bool / string-typed / masked, or exceeds

:data:MAX_PIXELS.

Typed bridge of the quat op `rgb_to_quaternion into the 2-D evolution registry: the same implementation, called under the op(v, a, b) convention. This op has no tunable parameter; a and b` are unused.

Referenzen (Beispieldaten, Literatur)

• Katalog der Beispieldaten (Download-URLs / Lizenzen) — 2-D nutzt skimage.data (BSD/Public Domain) plus synthetische Bilder, 3-D nennt Download-URLs echter Datenquellen (Stanford, PDS, …).

• Herkunft und Literatur der Operatoren — die Quellen der Forschung/Verfahren, auf denen diese Operatorfamilie beruht.

Ausführbare Beispiele (verifizierte Samples, die diesen Operator wirklich aufrufen)

• (noch keine)

Typkompatible Folge-Operatoren (nehmen qimage als Eingabe)

identity · tb_quaternion_to_rgb · tb_quat_norm · tb_quat_conjugate_image · tb_quat_normalize_image · tb_monogenic_amplitude · tb_monogenic_phase · tb_monogenic_orientation

Gleiche Kategorie (typed)

tb_points_to_voxel · tb_estimate_point_normals · tb_iss_keypoints · tb_angle_3points · tb_project_points · tb_render_point_depth · tb_statistical_outlier_removal · tb_radius_outlier_removal


*Provenance: ops.py — 2D Operator-Registry. Diese Notiz wird von tools/opdocs.py md erzeugt (nicht von Hand bearbeiten).*

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