mask

Functions

default_vertices(ax)

Default to rectangle that has a quarter-width/height border.

dist(x, y)

Return the distance between two points.

dist_point_to_segment(p, s0, s1)

Get the distance of a point to a segment.

make_mask(poly, img_shape)

Return image mask given by mask creator

Classes

PolygonInteractor(ax, poly)

A polygon editor.