Expand description
Image processing routines for zune-image
This implements some common image processing routines to be used with zune-image
It implements the OperationsTrait
defined by zune-image.
§Example
- Increase exposure of image by 2.0
use zune_core::colorspace::ColorSpace;
use zune_image::image::Image;
use zune_image::traits::OperationsTrait;
use zune_imageprocs::exposure::Exposure;
let mut image = Image::fill::<u8>(233,ColorSpace::RGB,100,100);
let exposure = Exposure::new(2.0,0.0);
// execute the filter
exposure.execute(&mut image).unwrap();
Modules§
- auto_
orient - Perform auto orientation of the image
- bilateral_
filter - A bilateral filter
- blend
- Blend filter
- box_
blur - brighten
- Brighten operation
- color_
matrix - Perform a color matrix operation
- composite
- contrast
- Calculate image contrast
- convolve
- 2D convolution on images
- crop
- Crop an image
- exposure
- Exposure filter
- flip
- Flip filter: Flip an image by reflecting pixels around the x-axis.
- flop
- Flop : Reflect pixels around the central y-axis
- gamma
- Apply gamma correction onto an image
- gaussian_
blur - (BROKEN): An implementation of a gaussian-blur.
- histogram
- Calculate channel histogram statistics
- hsv_
adjust - Adjust the hue, saturation and variance of an image
- invert
- Invert image pixels
- mathops
- Mathematical operations shared amongst functions
- median
- Applies a median filter of given dimensions to an image. Each output pixel is the median
of the pixels in a
(2 * radius + 1) * (2 * radius + 1)
kernel of pixels in the input image. - mirror
- Rearrange the pixels along a certain axis.
- pad
- Methods used for duplicating pixels around the border
- premul_
alpha - Alpha pre-multiplication routines
- resize
- (BROKEN): Resize an image to a new width and height
- rotate
- Rotate an image
- scharr
- Scharr derivative filter
- sobel
- Sobel derivative filter
- spatial
- Spatial operations on images
- spatial_
ops - Simple spatial operations implemented for images
- stretch_
contrast - Strech contrast filter, Linearly stretches the contrast in an image
- threshold
- Threshold filter: Binarize an image
- traits
- Various operations useful for generic image processing.
- transpose
- Interchange row and columns in an image
- unsharpen
- (BROKEN): Do not use