quat_normalize_image — QUAT algebra op

資料種類:qimageqimage

呼叫:import quatimage; quatimage.quat_normalize_image(qimage) -> 'np.ndarray'(或 opsquat.get("quat_normalize_image"))

用法

逐像素正規化到單位模。→ (H, W, 4)。

> 以下的詳細說明為原文 —— 摘要與標題已翻譯。

Fail-closed on a zero pixel. A quaternion image routinely contains exact

zeros — a black pixel is `(0,0,0,0)` — so the case is not hypothetical, and

a zero quaternion has no direction to normalise towards. It is refused by

name, with the count and the first offending pixel's row and column in the

message, rather than divided by `norm + eps`: that idiom returns zero, and

a zero used as a rotor becomes the identity rotation with no exception

and no NaN to mark it. (`pose_quat.quat_normalize` did exactly that until

2026-09-01 and now fail-closes too; see :func:quat_color_rotate.)

Raises `ValueError`: any pixel has modulus 0.

詳細使用指南

quaternion_monogenic 族使用指南

參考(範例資料・文獻)

• 範例資料目錄(下載 URL / 授權) —— 2-D 用 skimage.data(BSD/公有領域)加合成圖,3-D 給出真實資料源(Stanford/PDS 等)的下載 URL。

• 運算子來歷與參考文獻 —— 該運算子族所依據的研究/方法出處。

• 演算法的正典(作者・年份)與用途見上面的族使用指南

可執行的範例(實際呼叫該運算子並已驗證的樣例)

quaternion_monogenicpy -3.11 examples/quaternion_monogenic.py

型別可銜接的下一個運算子(可接受 qimage 作為輸入)

quaternion_to_rgb · quat_norm · quat_conjugate_image · quat_image_multiply · monogenic_amplitude · monogenic_phase · monogenic_orientation · quat_color_rotate

同類別(algebra)

quat_conjugate_image · quat_image_multiply


*Provenance: quatimage.py — QUAT 運算子登記表。本條目由 tools/opdocs.py md 自動產生(請勿手動編輯)。*

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