imshow-collection

imshow_collection skimage.io.imshow_collection(ic, plugin=None, **plugin_args) [source] Display a collection of images. Parameters: ic : ImageCollection Collection to display. plugin : str Name of plugin to use. By default, the different plugins are tried until a suitable candidate is found. Other Parameters: plugin_args : keywords Passed to the given plugin.

rectangletool

RectangleTool class skimage.viewer.canvastools.RectangleTool(manager, on_move=None, on_release=None, on_enter=None, maxdist=10, rect_props=None) [source] Bases: skimage.viewer.canvastools.base.CanvasToolBase, matplotlib.widgets.RectangleSelector Widget for selecting a rectangular region in a plot. After making the desired selection, press “Enter” to accept the selection and call the on_enter callback function. Parameters: manager : Viewer or PlotPlugin. Skimage viewer or plot plugin object

cut-threshold

cut_threshold skimage.future.graph.cut_threshold(labels, rag, thresh, in_place=True) [source] Combine regions separated by weight less than threshold. Given an image’s labels and its RAG, output new labels by combining regions whose nodes are separated by a weight less than the given threshold. Parameters: labels : ndarray The array of labels. rag : RAG The region adjacency graph. thresh : float The threshold. Regions connected by edges with smaller weights are combined. in_place : bo

camera

camera skimage.data.camera() [source] Gray-level “camera” image. Often used for segmentation and denoising examples.

img-as-ubyte

img_as_ubyte skimage.img_as_ubyte(image, force_copy=False) [source] Convert an image to 8-bit unsigned integer format. Parameters: image : ndarray Input image. force_copy : bool Force a copy of the data, irrespective of its current dtype. Returns: out : ndarray of ubyte (uint8) Output image. Notes Negative input values will be clipped. Positive values are scaled between 0 and 255.

rgb2hsv

rgb2hsv skimage.color.rgb2hsv(rgb) [source] RGB to HSV color space conversion. Parameters: rgb : array_like The image in RGB format, in a 3-D array of shape (.., .., 3). Returns: out : ndarray The image in HSV format, in a 3-D array of shape (.., .., 3). Raises: ValueError If rgb is not a 3-D array of shape (.., .., 3). Notes The conversion assumes an input data range of [0, 1] for all color components. Conversion between RGB and HSV color spaces results in some loss of precision

circle-perimeter-aa

circle_perimeter_aa skimage.draw.circle_perimeter_aa() Generate anti-aliased circle perimeter coordinates. Parameters: cy, cx : int Centre coordinate of circle. radius: int Radius of circle. shape : tuple, optional Image shape which is used to determine the maximum extent of output pixel coordinates. This is useful for circles which exceed the image size. By default the full extent of the circle are used. Returns: rr, cc, val : (N,) ndarray (int, int, float) Indices of pixels (rr,

closing

closing skimage.morphology.closing(image, selem=None, *args, **kwargs) [source] Return greyscale morphological closing of an image. The morphological closing on an image is defined as a dilation followed by an erosion. Closing can remove small dark spots (i.e. “pepper”) and connect small bright cracks. This tends to “close” up (dark) gaps between (bright) features. Parameters: image : ndarray Image array. selem : ndarray, optional The neighborhood expressed as an array of 1’s and 0’s. If

circle

circle skimage.draw.circle(r, c, radius, shape=None) [source] Generate coordinates of pixels within circle. Parameters: r, c : double Centre coordinate of circle. radius: double Radius of circle. shape : tuple, optional Image shape which is used to determine the maximum extent of output pixel coordinates. This is useful for circles which exceed the image size. By default the full extent of the circle are used. Returns: rr, cc : ndarray of int Pixel coordinates of circle. May be use

collectionviewer

CollectionViewer class skimage.viewer.CollectionViewer(image_collection, update_on='move', **kwargs) [source] Bases: skimage.viewer.viewers.core.ImageViewer Viewer for displaying image collections. Select the displayed frame of the image collection using the slider or with the following keyboard shortcuts: left/right arrows Previous/next image in collection. number keys, 0–9 0% to 90% of collection. For example, “5” goes to the image in the middle (i.e. 50%) of the collection. home/end keys