[][src]Function kmeans_colors_lib::get_closest_centroid_rgb

pub fn get_closest_centroid_rgb(
    rgb: &[Srgb],
    centroids: &[Srgb],
    indices: &mut Vec<u8>
)

Find a pixel's nearest centroid color in Rgb, index the pixel with that centroid.