sobel-h

sobel_h skimage.filters.sobel_h(image, mask=None) [source] Find the horizontal edges of an image using the Sobel 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 Sobel edge map. Notes We use the following kernel: 1 2 1 0 0 0 -1 -2

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

cumulative-distribution

cumulative_distribution skimage.exposure.cumulative_distribution(image, nbins=256) [source] Return cumulative distribution function (cdf) for the given image. Parameters: image : array Image array. nbins : int Number of bins for image histogram. Returns: img_cdf : array Values of cumulative distribution function. bin_centers : array Centers of bins. See also histogram References [R85] http://en.wikipedia.org/wiki/Cumulative_distribution_function Examples >>> from skima

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

module-skimage.io

Module: io Utilities to read and write images in various formats. The following plug-ins are available: Plugin Description pil Image reading via the Python Imaging Library qt Fast image display using the Qt library freeimage Load images using the FreeImage library gtk Fast image display using the GTK library matplotlib Display or save images using Matplotlib simpleitk Image reading and writing via SimpleITK imread Image reading and writing via imread imageio Image reading via the ImageIO Librar

ncut

ncut skimage.future.graph.ncut(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 : float The threshold. A

black-tophat

black_tophat skimage.morphology.black_tophat(image, selem=None, *args, **kwargs) [source] Return black top hat of an image. The black top hat of an image is defined as its morphological closing minus the original image. This operation returns the dark spots of the image that are smaller than the structuring element. Note that dark spots in the original image are bright spots after the black top hat. Parameters: image : ndarray Image array. selem : ndarray, optional The neighborhood expre

binary-closing

binary_closing skimage.morphology.binary_closing(image, selem=None, *args, **kwargs) [source] Return fast binary morphological closing of an image. This function returns the same result as greyscale closing but performs faster for binary images. 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: i

Image Viewer

Image Viewer

combobox

ComboBox class skimage.viewer.widgets.ComboBox(name, items, ptype='kwarg', callback=None) [source] Bases: skimage.viewer.widgets.core.BaseWidget ComboBox widget for selecting among a list of choices. Parameters: name : str Name of ComboBox 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 ComboBox. items: list of str Allowed parameter