windowed-histogram

windowed_histogram skimage.filters.rank.windowed_histogram(image, selem, out=None, mask=None, shift_x=False, shift_y=False, n_bins=None) [source] Normalized sliding window histogram Parameters: image : ndarray Image array (uint8 array). selem : 2-D array The neighborhood expressed as a 2-D array of 1’s and 0’s. out : ndarray If None, a new array will be allocated. mask : ndarray Mask array that defines (>0) area of the image included in the local neighborhood. If None, the complet

lab2xyz

lab2xyz skimage.color.lab2xyz(lab, illuminant='D65', observer='2') [source] CIE-LAB to XYZcolor space conversion. Parameters: lab : array_like The image in lab format, in a 3-D array of shape (.., .., 3). illuminant : {“A”, “D50”, “D55”, “D65”, “D75”, “E”}, optional The name of the illuminant (the function is NOT case sensitive). observer : {“2”, “10”}, optional The aperture angle of the observer. Returns: out : ndarray The image in XYZ format, in a 3-D array of shape (.., .., 3).

binary-erosion

binary_erosion skimage.morphology.binary_erosion(image, selem=None, *args, **kwargs) [source] Return fast binary morphological erosion of an image. This function returns the same result as greyscale erosion but performs faster for binary images. Morphological erosion sets a pixel at (i,j) to the minimum over all pixels in the neighborhood centered at (i,j). Erosion shrinks bright regions and enlarges dark regions. Parameters: image : ndarray Binary input image. selem : ndarray, optional

savebuttons

SaveButtons class skimage.viewer.widgets.SaveButtons(name='Save to:', default_format='png') [source] Bases: skimage.viewer.widgets.core.BaseWidget Buttons to save image to io.stack or to a file. __init__(name='Save to:', default_format='png') [source] save_to_file(filename=None) [source] save_to_stack() [source]

hscharr

hscharr skimage.filters.hscharr(*args, **kwargs) [source] Deprecated function. Use skimage.filters.scharr_h instead. Find the horizontal edges of an image using the Scharr transform. Parameters: image : 2-D array Image to process. mask : 2-D array, optional An optional mask to limit the application to a certain area. Note that pixels surrounding masked regions are also masked to prevent masked regions from affecting the result. Returns: output : 2-D array The absolute Scharr edge map

roberts-positive-diagonal

roberts_positive_diagonal skimage.filters.roberts_positive_diagonal(*args, **kwargs) [source] Deprecated function. Use skimage.filters.roberts_pos_diag instead. Find the cross edges of an image using Roberts’ cross operator. The kernel is applied to the input image to produce separate measurements of the gradient component one orientation. Parameters: image : 2-D array Image to process. mask : 2-D array, optional An optional mask to limit the application to a certain area. Note that pixe

approximate-polygon

approximate_polygon skimage.measure.approximate_polygon(coords, tolerance) [source] Approximate a polygonal chain with the specified tolerance. It is based on the Douglas-Peucker algorithm. Note that the approximated polygon is always within the convex hull of the original polygon. Parameters: coords : (N, 2) array Coordinate array. tolerance : float Maximum distance from original points of polygon to approximated polygonal chain. If tolerance is 0, the original coordinate array is retur

label

label skimage.measure.label(input, neighbors=None, background=None, return_num=False, connectivity=None) [source] Label connected regions of an integer array. Two pixels are connected when they are neighbors and have the same value. In 2D, they can be neighbors either in a 1- or 2-connected sense. The value refers to the maximum number of orthogonal hops to consider a pixel/voxel a neighbor: 1-connectivity 2-connectivity diagonal connection close-up [ ] [ ] [ ] [ ]

imsave

imsave skimage.io.imsave(fname, arr, plugin=None, **plugin_args) [source] Save an image to file. Parameters: fname : str Target filename. arr : ndarray of shape (M,N) or (M,N,3) or (M,N,4) Image data. plugin : str Name of plugin to use. By default, the different plugins are tried (starting with the Python Imaging Library) until a suitable candidate is found. If not given and fname is a tiff file, the tifffile plugin will be used. Other Parameters: plugin_args : keywords Passed to

noise-filter

noise_filter skimage.filters.rank.noise_filter(image, selem, out=None, mask=None, shift_x=False, shift_y=False) [source] Noise feature. 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 (defaul