Function get_conversion_code
Source pub fn get_conversion_code(
src_encoding: Encoding,
dst_encoding: Encoding,
) -> Result<i32, String>
Expand description
Returns the conversion code for going from one color space to another
§Arguments
src_encoding - The source encoding
dst_encoding - The destination encoding
§Returns
Ok(i32) - The conversion code (eg. opencv::imgproc::COLOR_RGB2GRAY)