skimage 0.17.2

AttributesParametersBackRef

Attributes

overlay : array

Overlay of painted labels displayed on top of image.

label : int

Current paint color.

Parameters

manager : Viewer or PlotPlugin.

Skimage viewer or plot plugin object.

overlay_shape : shape tuple

2D shape tuple used to initialize overlay image.

radius : int

The size of the paint cursor.

alpha : float (between [0, 1])

Opacity of overlay.

on_move : function

Function called whenever a control handle is moved. This function must accept the end points of line as the only argument.

on_release : function

Function called whenever the control handle is released.

on_enter : function

Function called whenever the "enter" key is pressed.

rect_props : dict

Properties for matplotlib.patches.Rectangle . This class redefines defaults in matplotlib.widgets.RectangleSelector .

Widget for painting on top of a plot.

Examples

This example is valid syntax, but we were not able to check execution
>>> from skimage.data import camera
... import matplotlib.pyplot as plt
... from skimage.viewer.canvastools import PaintTool
... import numpy as np
This example is valid syntax, but we were not able to check execution
>>> img = camera() #doctest: +SKIP
This example is valid syntax, but we were not able to check execution
>>> ax = plt.subplot(111) #doctest: +SKIP 
... plt.imshow(img, cmap=plt.cm.gray) #doctest: +SKIP
... p = PaintTool(ax,np.shape(img[:-1]),10,0.2) #doctest: +SKIP
... plt.show() #doctest: +SKIP
This example is valid syntax, but we were not able to check execution
>>> mask = p.overlay #doctest: +SKIP
... plt.imshow(mask,cmap=plt.cm.gray) #doctest: +SKIP
... plt.show() #doctest: +SKIP
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

skimage.viewer.canvastools.painttool.PaintTool

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /skimage/viewer/canvastools/painttool.py#12
type: <class 'type'>
Commit: