Expand description
Fixed-size RGB colour histogram → L2-normalized f32 embedding (caller buffer).
Honest scope: local CBIR colour proxy only. Not a foundation multimodal
embedding (CLIP). Suitable for decentralized near-colour search until an
ONNX CLIP/ResNet path is placed under vendor/vision/embeddings/.
Constants§
- COLOR_
HIST_ BINS - Bins per RGB channel for the joint histogram.
- COLOR_
HIST_ EMBED_ DIM - Embedding dimension: joint 4×4×4 RGB histogram (64 floats).
Functions§
- color_
hist_ embed_ rgb - Fill
out[..COLOR_HIST_EMBED_DIM]with an L2-normalized joint RGB histogram.