Crate zune_imageprocs

Source
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