pub fn save_dyn_image(img: DynamicImage, filtered_img_path: &str) {
    // let raw_pixels = img.raw_pixels;
    // let width = img.width;
    // let height = img.height;

    // let img_buffer = ImageBuffer::from_vec(width, height, raw_pixels).unwrap();
    // let dynimage = image::ImageRgba8(img_buffer);

    img.save(filtered_img_path).unwrap();
}
/// Save a DynamicImage to a path.
Save a DynamicImage to a path.
Save a DynamicImage to a path .
pub fn save_dyn_image(img: DynamicImage, filtered_img_path: &str) {
    // let raw_pixels = img.raw_pixels;
    // let width = img.width;
    // let height = img.height;
    // let img_buffer = ImageBuffer::from_vec(width, height, raw_pixels).unwrap();
    // let dynimage = image::ImageRgba8(img_buffer);
    img.save(filtered_img_path).unwrap();
}
pub fn save_dyn_image ( img : DynamicImage , filtered_img_path : & str ) { // let raw_pixels = img.raw_pixels; // let width = img.width; // let height = img.height; // let img_buffer = ImageBuffer::from_vec(width, height, raw_pixels).unwrap(); // let dynimage = image::ImageRgba8(img_buffer); img . save ( filtered_img_path ) . unwrap ( ) ; }
Save a DynamicImage to a path.
Save a DynamicImage to a path .
img
DynamicImage
filtered_img_path
&str