Crate visioncortex[][src]

Re-exports

pub use bound::Bound;
pub use bound::BoundingRect;
pub use bound::BoundStat;
pub use disjoint_sets::Forests;

Modules

bound
clusters
color_clusters

Algorithm to build an image binary tree

disjoint_sets

Contains functions and data structures for partitioning items into groups.

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

AverageShape

Morphologically transforms a shape into another

BinaryImage

Image with 1 bit per pixel

BitVec

The bitvector type.

Color

RGBA; each channel is 8 bit unsigned

ColorF64

RGB; each channel is 64 bit float

ColorHsv

HSV; each channel is 64 bit float

ColorI32

RGB; each channel is 32 bit signed

ColorImage

Image with 4 bytes per pixel

ColorImageIter

Iterate over each pixel of ColorImage

ColorStat

Simple statistics of color samples

ColorStatBuilder

Compute simple statistics from color samples

ColorSum

RGBA; each channel is 32 bit unsigned

CompoundPath
Field

Vec<T> that represents a 2D field

Numeric

Matrix operations adapted from https://github.com/sloisel/numeric

Path

Path of generic points in 2D space

PathWalker

Handles Path Walking with straight run optimization

PerspectiveTransform

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

RectangularTransform

Equivalent to a Homothetic transform

SampleStat

Sample statistics

SampleStatBuilder
Sampler

For sampling and resizing binary images

ScalerField

Generalization of 2D array of pixels with any Item

Shape

A conceptual object represented by an image

SimpleStat

Simple statistics

SimpleStatBuilder
Skeleton

The medial axis

SpiralWalker
Spline

Series of connecting 2D Bezier Curves

SummedAreaTable

A data structure to efficiently compute summed pixel values over regions in an image (repeatedly).

Enums

ColorName

Color names

CompoundPathElement
Dir
PathSimplifyMode

Traits

ColorType
ToSvgString
Transform

Transformation of coordinate in space

Functions

bilinear_interpolate
bilinear_interpolate_safe

Type Definitions

Matrix
MonoImage

Image with grayscale values

MonoImageItem

Component of MonoImage

PathF64

Path of 2D PointF64

PathI32

Path of 2D PointI32

PointF32

2D Point with f32 component

PointF64

2D Point with f64 component

PointI32

2D Point with i32 component

PointU8

2D Point with u8 component