colorutils_rs

Function lab_to_srgb

Source
pub fn lab_to_srgb(
    src: &[f32],
    src_stride: u32,
    dst: &mut [u8],
    dst_stride: u32,
    width: u32,
    height: u32,
)
Expand description

This function converts LAB to RGB. This is much more effective than naive direct transformation

ยงArguments

  • src - A slice contains LAB data
  • src_stride - Bytes per row for src data.
  • width - Image width
  • height - Image height
  • dst - A mutable slice to receive RGB data
  • dst_stride - Bytes per row for dst data