Crate rten_imageproc

Crate rten_imageproc 

Source
Expand description

Provides 2D geometry and image processing functions.

This includes:

Structs§

FillIter
Iterator over coordinates of pixels that fill a polygon. See Polygon::fill_iter for notes on how this iterator determines which pixels are inside the polygon.
Line
A bounded line segment defined by a start and end point.
Painter
Painter is a context for drawing into an image tensor.
Point
A point defined by X and Y coordinates.
Polygon
Polygon shape defined by a list of vertices.
Polygons
A collection of polygons, where each polygon is defined by a slice of points.
Rect
Rectangle defined by left, top, right and bottom coordinates.
RotatedRect
An oriented rectangle.
Vec2

Enums§

RetrievalMode
Specifies which contours to extract from a mask in find_contours.

Constants§

IMAGENET_MEAN
Standard ImageNet normalization mean values, for use with normalize_image.
IMAGENET_STD_DEV
Standard ImageNet normalization standard deviation values, for use with normalize_image.

Traits§

BoundingRect
Trait for shapes which have a well-defined bounding rectangle.
Coord
Trait for types which can be used as coordinates of shapes.

Functions§

bounding_rect
Return the bounding rectangle of a collection of shapes.
convex_hull
Return the sorted subset of points from poly that form a convex hull containing poly.
draw_line
Draw a non-antialiased line in an image.
draw_polygon
Draw the outline of a non anti-aliased polygon in an image.
fill_rect
Fill all points inside rect with the value value.
find_contours
Find the contours of connected components in the binary image mask.
min_area_rect
Return the rotated rectangle with minimum area which contains points.
normalize_image
Normalize the mean and standard deviation of all pixels in an image.
simplify_polygon
Return a simplified version of the polygon defined by points.
simplify_polyline
Return a simplified version of the polyline defined by points.
stroke_rect

Type Aliases§

LineF
PointF
PolygonF
RectF
Rgb