dtype-limits

dtype_limits skimage.util.dtype_limits(image, clip_negative=True) [source] Return intensity limits, i.e. (min, max) tuple, of the image’s dtype. Parameters: image : ndarray Input image. clip_negative : bool If True, clip the negative range (i.e. return 0 for min intensity) even if the image dtype allows negative values.

ellipse

ellipse skimage.draw.ellipse(r, c, yradius, xradius, shape=None) [source] Generate coordinates of pixels within ellipse. Parameters: r, c : double Centre coordinate of ellipse. yradius, xradius : double Minor and major semi-axes. (x/xradius)**2 + (y/yradius)**2 = 1. shape : tuple, optional Image shape which is used to determine the maximum extent of output pixel coordinates. This is useful for ellipses which exceed the image size. By default the full extent of the ellipse are used. R

draw-rag

draw_rag skimage.future.graph.draw_rag(labels, rag, img, border_color=None, node_color='#ffff00', edge_color='#00ff00', colormap=None, thresh=inf, desaturate=False, in_place=True) [source] Draw a Region Adjacency Graph on an image. Given a labelled image and its corresponding RAG, draw the nodes and edges of the RAG on the image with the specified colors. Nodes are marked by the centroids of the corresponding regions. Parameters: labels : ndarray, shape (M, N) The labelled image. rag : RA

draw-multiblock-lbp

draw_multiblock_lbp skimage.feature.draw_multiblock_lbp(img, r, c, width, height, lbp_code=0, color_greater_block=[1, 1, 1], color_less_block=[0, 0.69, 0.96], alpha=0.5) [source] Multi-block local binary pattern visualization. Blocks with higher sums are colored with alpha-blended white rectangles, whereas blocks with lower sums are colored alpha-blended cyan. Colors and the alpha parameter can be changed. Parameters: img : ndarray of float or uint Image on which to visualize the pattern.

disk

disk skimage.morphology.disk(radius, dtype=) [source] Generates a flat, disk-shaped structuring element. A pixel is within the neighborhood if the euclidean distance between it and the origin is no greater than radius. Parameters: radius : int The radius of the disk-shaped structuring element. Returns: selem : ndarray The structuring element where elements of the neighborhood are 1 and 0 otherwise. Other Parameters: dtype : data-type The data type of the structuring element.

downscale-local-mean

downscale_local_mean skimage.transform.downscale_local_mean(image, factors, cval=0, clip=True) [source] Down-sample N-dimensional image by local averaging. The image is padded with cval if it is not perfectly divisible by the integer factors. In contrast to the 2-D interpolation in skimage.transform.resize and skimage.transform.rescale this function may be applied to N-dimensional images and calculates the local mean of elements in each block of size factors in the input image. Parameters:

description

Module: novice

dilation

dilation skimage.morphology.dilation(image, selem=None, *args, **kwargs) [source] Return greyscale morphological dilation of an image. Morphological dilation sets a pixel at (i,j) to the maximum over all pixels in the neighborhood centered at (i,j). Dilation enlarges bright regions and shrinks dark regions. Parameters: image : ndarray Image array. selem : ndarray, optional The neighborhood expressed as a 2-D array of 1’s and 0’s. If None, use cross-shaped structuring element (connectivit

diamond

diamond skimage.morphology.diamond(radius, dtype=) [source] Generates a flat, diamond-shaped structuring element. A pixel is part of the neighborhood (i.e. labeled 1) if the city block/Manhattan distance between it and the center of the neighborhood is no greater than radius. Parameters: radius : int The radius of the diamond-shaped structuring element. Returns: selem : ndarray The structuring element where elements of the neighborhood are 1 and 0 otherwise. Other Parameters: dtype

deprecated

deprecated class skimage.filters.deprecated(alt_func=None, behavior='warn') [source] Bases: object Decorator to mark deprecated functions with warning. Adapted from <http://wiki.python.org/moin/PythonDecoratorLibrary>. Parameters: alt_func : str If given, tell user what function to use instead. behavior : {‘warn’, ‘raise’} Behavior during call to deprecated function: ‘warn’ = warn user that function is deprecated; ‘raise’ = raise error. __init__(alt_func=None, behavior='warn') [