Function rscolorq::spatial_color_quant [−][src]
pub fn spatial_color_quant<T>(
image: &Matrix2d<T>,
quantized_image: &mut Matrix2d<u8>,
palette: &mut Vec<T>,
conditions: &Params<T>
) -> Result<(), QuantError> where
T: Clone + Default + Copy + Add<T, Output = T> + AddAssign<T> + Mul<f64, Output = T> + Mul<T, Output = T> + MulAssign<f64> + Sub<T, Output = T> + SpatialQuant,
Perform the spatial color quantization. The mutated input parameters are a 2-dimensional matrix with the quantized color palette indices and the quantized color palette.