pub fn lab_to_rgb(
src: &[f32],
src_stride: u32,
dst: &mut [u8],
dst_stride: u32,
width: u32,
height: u32,
matrix: &[[f32; 3]; 3],
transfer_function: TransferFunction,
)Expand description
This function converts LAB to RGB. This is much more effective than naive direct transformation
§Arguments
src- A slice contains LAB datasrc_stride- Bytes per row for src data.width- Image widthheight- Image heightdst- A mutable slice to receive RGB datadst_stride- Bytes per row for dst datamatrix- Transformation matrix from RGB to XYZ. If you don’t have specific just pickXYZ_TO_SRGB_D65transfer_function- Transfer function. If you don’t have specific pickSrgb