Expand description
An image processing library based on the image crate.
Note that the image crate contains some image
processing functions (including image resizing) in its
imageops
module, so check there if you cannot find
a standard image processing function in this crate.
Re-exports§
pub use image;
Modules§
- binary_
descriptors - Functions for generating and comparing compact binary patch descriptors.
- contours
- Functions for finding border contours within binary images.
- contrast
- Functions for manipulating the contrast of images.
- corners
- Functions for detecting corners, also known as interest points.
- definitions
- Trait definitions and type aliases.
- distance_
transform - Functions for computing distance transforms - the distance of each pixel in an image from the nearest pixel of interest.
- drawing
- Helpers for drawing basic shapes on images.
- edges
- Functions for detecting edges in images.
- filter
- Functions for filtering images.
- geometric_
transformations - Geometric transformations of images. This includes rotations, translation, and general projective transformations.
- geometry
- Computational geometry functions, for example finding convex hulls.
- gradients
- Functions for computing gradients of image intensities.
- haar
- Functions for creating and evaluating Haar-like features.
- hog
- HoG features and helpers for visualizing them.
- hough
- Line detection via the Hough transform.
- integral_
image - Functions for computing integral images and running sums of rows and columns.
- local_
binary_ patterns - Functions for computing local binary patterns.
- map
- Functions for mapping over pixels, colors or subpixels of images.
- math
- Assorted mathematical helper functions.
- morphology
- Functions for computing morphological operators.
- noise
- Functions for adding synthetic noise to images.
- pixelops
- Pixel manipulations.
- point
- A 2d point type.
- property_
testing - Utilities to help with writing property-based tests (e.g. quickcheck tests) for image processing functions.
- rect
- Basic manipulation of rectangles.
- region_
labelling - Functions for finding and labelling connected components of an image.
- seam_
carving - An implementation of seam carving. Currently in a pretty rough state. See examples/seam_carving.rs for an example.
- stats
- Statistical properties of images.
- suppress
- Functions for suppressing non-maximal values.
- template_
matching - Functions for performing template matching.
- union_
find - An implementation of disjoint set forests for union find.
- utils
- Utils for testing and debugging.
Macros§
- assert_
dimensions_ match - Panics if image dimensions do not match.
- assert_
pixels_ eq - Panics if any pixels differ between the two input images.
- assert_
pixels_ eq_ within - Panics if any pixels differ between the two images by more than the given tolerance in a single channel.
- gray_
image - Helper for defining greyscale images.
- rgb_
image - Helper for defining RGB images.
- rgba_
image - Helper for defining RGBA images.