Re-exports§
pub use bound::Bound;
pub use bound::BoundingRect;
pub use bound::BoundingRectF64;
pub use bound::BoundStat;
pub use disjoint_sets::Forests;
Modules§
- bound
- Functions to compute and manipulate bounding rectangles
- clusters
- Algorithm to cluster a binary image
- color_
clusters - Algorithm to cluster a color image and build a tree of clusters
- disjoint_
sets - Contains functions and data structures for partitioning items into groups.
- rasterizer
- reduce
- Path simplification algorithms adapted from https://github.com/mourner/simplify-js
Structs§
- Artifact
- An artificial object that have a shape and a position in space
- Average
Shape - Morphologically transforms a shape into another
- Binary
Image - Image with 1 bit per pixel
- BitVec
- The bitvector type.
- Color
- RGBA; each channel is 8 bit unsigned
- Color
F64 - RGB; each channel is 64 bit float
- Color
Hsv - HSV; each channel is 64 bit float
- Color
I32 - RGB; each channel is 32 bit signed
- Color
Image - Image with 4 bytes per pixel
- Color
Image Iter - Iterate over each pixel of ColorImage
- Color
Stat - Simple statistics of color samples
- Color
Stat Builder - Compute simple statistics from color samples
- Color
Sum - RGBA; each channel is 32 bit unsigned
- Compound
Path - A collection of
Path
andSpline
that represents a shape with holes - Field
Vec<T>
that represents a 2D field- Matrix
- Matrix operations adapted from https://github.com/sloisel/numeric
- Path
- Path of generic points in 2D space
- Path
Walker - Walks the boundary of a
BinaryImage
with straight run optimization - Perspective
Transform - A perspective transform can easily be used to map one 2D quadrilateral to another, given the corner coordinates for the source and destination quadrilaterals.
- Point2
- Generic point in 2D space
- Rectangular
Transform - Equivalent to a Homothetic transform
- Sample
Stat - Sample statistics: (mean, mode, median and standard deviation)
- Sample
Stat Builder - Class to calculate
SampleStat
- Sampler
- For sampling and resizing binary images
- Scaler
Field - Generalization of 2D array of pixels with any Item
- Shape
- A conceptual object represented by an image
- Simple
Stat - Simple statistics: (mean and standard deviation)
- Simple
Stat Builder - Class to calculate
SimpleStat
- Skeleton
- The skeleton of a binary image (aka medial axis)
- Spiral
Walker - Walks a square region in a spiral (clockwise; assuming top-left origin) manner, starting from the center
- Spline
- Series of connecting 2D Bezier Curves
- Summed
Area Table - A data structure to efficiently compute summed pixel values over regions in an image (repeatedly).
Enums§
- Color
Name - Color names
- Compound
Path Element - An element of a
CompoundPath
- Dir
- Path
Simplify Mode
Traits§
- Color
Type - Number
Format - Point
Type - ToSvg
String - Transform
- Transformation of coordinate in space
Functions§
- approximate_
circle_ with_ spline - bilinear_
interpolate - bilinear_
interpolate_ safe - circular_
arc - note: the vector p_0 -> p_3 must be at 45 degrees ap: the corner; to decide wich side to take from p_0 -> p_3 the center of the circular arc lies on the opposite side of ap
Type Aliases§
- Mono
Image - Image with grayscale values
- Mono
Image Item - Component of
MonoImage
- PathF64
- Path of 2D PointF64
- PathI32
- Path of 2D PointI32
- Point
F32 - 2D Point with
f32
component - Point
F64 - 2D Point with
f64
component - Point
I32 - 2D Point with
i32
component - PointU8
- 2D Point with
u8
component - Point
Usize - 2D Point with
usize
component