mpl_qt_viz.roiSelection

Useful classes for interacting with Matplotlib plots. Mostly for the purpose of drawing ROIs.

ROI Creators

EllipseCreator(ax, image[, onselect])

Allows the user to select an elliptical region.

LassoCreator(ax, image[, onselect])

Allows the user to select a region with freehand drawing.

RegionalPaintCreator(ax, im[, onselect])

A widget allowing the user to select a rectangular region with a bright region in it such as a fluorescent nucleus.

SquareCreator(ax, image[, onselect, sideLength])

FullImPaintCreator(ax, im[, onselect])

Uses adaptive thresholding in an attempt to highlight all bright selectable regions in a fluorescence image.

WaterShedPaintCreator(ax, im[, onselect])

Uses Watershed technique in an attempt to highlight all bright selectable regions in a fluorescence image.

Utility

AdjustableSelector(ax, image, selectorClass)

This class manages an roi selector.

PolygonModifier(ax[, onselect, onCancelled])

A polygon editor. https://matplotlib.org/gallery/event_handling/poly_editor.html Key-bindings: 'd' delete the vertex under point 'i' insert a vertex at point. You must be within epsilon of the line connecting two existing vertices.