Skip to main content

Module color_hist_embed

Module color_hist_embed 

Source
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.