pyramid-expand

pyramid_expand skimage.transform.pyramid_expand(image, upscale=2, sigma=None, order=1, mode='reflect', cval=0) [source] Upsample and then smooth image. Parameters: image : array Input image. upscale : float, optional Upscale factor. sigma : float, optional Sigma for Gaussian filter. Default is 2 * upscale / 6.0 which corresponds to a filter mask twice the size of the scale factor that covers more than 99% of the Gaussian distribution. order : int, optional Order of splines used in in

use-plugin

use_plugin skimage.io.use_plugin(name, kind=None) [source] Set the default plugin for a specified operation. The plugin will be loaded if it hasn’t been already. Parameters: name : str Name of plugin. kind : {‘imsave’, ‘imread’, ‘imshow’, ‘imread_collection’, ‘imshow_collection’}, optional Set the plugin for this function. By default, the plugin is set for all functions. See also available_plugins List of available plugins Examples To use Matplotlib as the default image reader, you

checkbox

CheckBox class skimage.viewer.widgets.CheckBox(name, value=False, alignment='center', ptype='kwarg', callback=None) [source] Bases: skimage.viewer.widgets.core.BaseWidget CheckBox widget Parameters: name : str Name of CheckBox parameter. If this parameter is passed as a keyword argument, it must match the name of that keyword argument (spaces are replaced with underscores). In addition, this name is displayed as the name of the CheckBox. value: {False, True}, optional Initial state of th

erosion

erosion skimage.morphology.erosion(image, selem=None, *args, **kwargs) [source] Return greyscale morphological erosion of an image. 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 Image array. selem : ndarray, optional The neighborhood expressed as an array of 1’s and 0’s. If None, use cross-shaped structuring element (connectivity=1). o

label2rgb

label2rgb skimage.color.label2rgb(label, image=None, colors=None, alpha=0.3, bg_label=-1, bg_color=(0, 0, 0), image_alpha=1, kind='overlay') [source] Return an RGB image where color-coded labels are painted over the image. Parameters: label : array, shape (M, N) Integer array of labels with the same shape as image. image : array, shape (M, N, 3), optional Image used as underlay for labels. If the input is an RGB image, it’s converted to grayscale before coloring. colors : list, optional

deltae-cmc

deltaE_cmc skimage.color.deltaE_cmc(lab1, lab2, kL=1, kC=1) [source] Color difference from the CMC l:c standard. This color difference was developed by the Colour Measurement Committee (CMC) of the Society of Dyers and Colourists (United Kingdom). It is intended for use in the textile industry. The scale factors kL, kC set the weight given to differences in lightness and chroma relative to differences in hue. The usual values are kL=2, kC=1 for “acceptability” and kL=1, kC=1 for “imperceptib

crop

crop skimage.util.crop(ar, crop_width, copy=False, order='K') [source] Crop array ar by crop_width along each dimension. Parameters: ar : array-like of rank N Input array. crop_width : {sequence, int} Number of values to remove from the edges of each axis. ((before_1, after_1), ... (before_N, after_N)) specifies unique crop widths at the start and end of each axis. ((before, after),) specifies a fixed start and end crop for every axis. (n,) or n for integer n is a shortcut for before = a

otsu

otsu skimage.filters.rank.otsu(image, selem, out=None, mask=None, shift_x=False, shift_y=False) [source] Local Otsu’s threshold value for each pixel. 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 complete image is used (default). shif

tifffile

TiffFile class skimage.external.tifffile.TiffFile(arg, name=None, offset=None, size=None, multifile=True, multifile_close=True) [source] Bases: object Read image and metadata from TIFF, STK, LSM, and FluoView files. TiffFile instances must be closed using the close method, which is automatically called when using the ‘with’ statement. Examples >>> with TiffFile('test.tif') as tif: ... data = tif.asarray() ... data.shape (256, 256, 4) Attributes pages (list) All TIFF pages

warn

warn skimage.viewer.warn(message, category=None, stacklevel=2) [source] A version of warnings.warn with a default stacklevel of 2.