median

median skimage.filters.rank.median(image, selem, out=None, mask=None, shift_x=False, shift_y=False) [source] Return local median of an image. Parameters: image : 2-D array (uint8, uint16) Input image. selem : 2-D array The neighborhood expressed as a 2-D array of 1’s and 0’s. out : 2-D array (same dtype as input) If None, a new array is allocated. mask : ndarray Mask array that defines (>0) area of the image included in the local neighborhood. If None, the complete image is used (

entropy

entropy skimage.filters.rank.entropy(image, selem, out=None, mask=None, shift_x=False, shift_y=False) [source] Local entropy. The entropy is computed using base 2 logarithm i.e. the filter returns the minimum number of bits needed to encode the local greylevel distribution. Parameters: image : 2-D array (uint8, uint16) Input image. selem : 2-D array The neighborhood expressed as a 2-D array of 1’s and 0’s. out : 2-D array (same dtype as input) If None, a new array is allocated. mask :

threshold

threshold skimage.filters.rank.threshold(image, selem, out=None, mask=None, shift_x=False, shift_y=False) [source] Local threshold of an image. The resulting binary mask is True if the greyvalue of the center pixel is greater than the local mean. Parameters: image : 2-D array (uint8, uint16) Input image. selem : 2-D array The neighborhood expressed as a 2-D array of 1’s and 0’s. out : 2-D array (same dtype as input) If None, a new array is allocated. mask : ndarray Mask array that de

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

rgb2grey

rgb2grey skimage.color.rgb2grey(rgb) [source] Compute luminance of an RGB image. Parameters: rgb : array_like The image in RGB format, in a 3-D array of shape (.., .., 3), or in RGBA format with shape (.., .., 4). Returns: out : ndarray The luminance image, a 2-D array. Raises: ValueError If rgb2gray is not a 3-D array of shape (.., .., 3) or (.., .., 4). Notes The weights used in this conversion are calibrated for contemporary CRT phosphors: Y = 0.2125 R + 0.7154 G + 0.0721 B I

warp-coords

warp_coords skimage.transform.warp_coords(coord_map, shape, dtype=) [source] Build the source coordinates for the output of a 2-D image warp. Parameters: coord_map : callable like GeometricTransform.inverse Return input coordinates for given output coordinates. Coordinates are in the shape (P, 2), where P is the number of coordinates and each element is a (row, col) pair. shape : tuple Shape of output image (rows, cols[, bands]). dtype : np.dtype or string dtype for return value (sane

ellipsoid-stats

ellipsoid_stats skimage.draw.ellipsoid_stats(a, b, c) [source] Calculates analytical surface area and volume for ellipsoid with semimajor axes aligned with grid dimensions of specified spacing. Parameters: a : float Length of semimajor axis aligned with x-axis. b : float Length of semimajor axis aligned with y-axis. c : float Length of semimajor axis aligned with z-axis. Returns: vol : float Calculated volume of ellipsoid. surf : float Calculated surface area of ellipsoid.

skeletonize-3d

skeletonize_3d skimage.morphology.skeletonize_3d(img) [source] Compute the skeleton of a binary image. Thinning is used to reduce each connected component in a binary image to a single-pixel wide skeleton. Parameters: img : ndarray, 2D or 3D A binary image containing the objects to be skeletonized. Zeros represent background, nonzero values are foreground. Returns: skeleton : ndarray The thinned image. See also skeletonize, medial_axis Notes The method of [Lee94] uses an octree dat

cut-normalized

cut_normalized skimage.future.graph.cut_normalized(labels, rag, thresh=0.001, num_cuts=10, in_place=True, max_edge=1.0) [source] Perform Normalized Graph cut on the Region Adjacency Graph. Given an image’s labels and its similarity RAG, recursively perform a 2-way normalized cut on it. All nodes belonging to a subgraph that cannot be cut further are assigned a unique label in the output. Parameters: labels : ndarray The array of labels. rag : RAG The region adjacency graph. thresh : flo

linemodelnd

LineModelND class skimage.measure.LineModelND [source] Bases: skimage.measure.fit.BaseModel Total least squares estimator for N-dimensional lines. Lines are defined by a point (origin) and a unit vector (direction) according to the following vector equation: X = origin + lambda * direction Attributes params (tuple) Line model parameters in the following order origin, direction. __init__() [source] estimate(data) [source] Estimate line model from data. Parameters: data : (N, dim) arra