pub fn image_to_bytes( path: impl AsRef<Path>, nheight: u32, nwidth: u32, dtype: Dtype) -> Result<Vec<u8>, CvError>