Crate math_images_processor

Crate math_images_processor 

Source

Structs§

ImageProcessorConfig
Configuration for image processing final sizes

Functions§

preprocess_image
The most important part of this crate. Takes a DynamicImage from the image crate and returns a processed GrayImage, already within the desired size provided by ImageProcessorConfig.
process_directory
Processes all PNG, JPG, and JPEG files in a directory and saves the processed images in a separate directory. NOTE 1: This uses asynchronous processing, so use with tokio macros in the main function. NOTE 2: Asynchronous processing is almost 7x faster than synchronous processing. For synchronous processing use process_directory_without_async. Final image sizes can be configured via ImageProcessorConfig. For processing a single file use process_image_file. For processing a DynamicImage from the image crate, use directly preprocess_image.
process_directory_without_async
process_image_file
Processes a single image file, specified by input_path, and saves the processed image to a new file, specified by output_path. Final image sizes can be configured via ImageProcessorConfig. For processing a directory use process_directory. For processing a DynamicImage from the image crate, use directly preprocess_image.