Skip to main content

color_hist_embed_rgb

Function color_hist_embed_rgb 

Source
pub fn color_hist_embed_rgb(
    src: RgbView<'_>,
    out: &mut [f32],
) -> Result<usize, CvError>
Expand description

Fill out[..COLOR_HIST_EMBED_DIM] with an L2-normalized joint RGB histogram.

Bin index: ((r_bin * B + g_bin) * B + b_bin) with B = COLOR_HIST_BINS. Returns the written length (COLOR_HIST_EMBED_DIM).