wiener

wiener skimage.filters.wiener(data, impulse_response=None, filter_params={}, K=0.25, predefined_filter=None) [source] Minimum Mean Square Error (Wiener) inverse filter. Parameters: data : (M,N) ndarray Input data. K : float or (M,N) ndarray Ratio between power spectrum of noise and undegraded image. impulse_response : callable f(r, c, **filter_params) Impulse response of the filter. See LPIFilter2D.__init__. filter_params : dict Additional keyword parameters to the impulse_response f

gray2rgb

gray2rgb skimage.color.gray2rgb(image, alpha=None) [source] Create an RGB representation of a gray-level image. Parameters: image : array_like Input image of shape (M, N [, P]). alpha : bool, optional Ensure that the output image has an alpha layer. If None, alpha layers are passed through but not created. Returns: rgb : ndarray RGB image of shape (M, N, [, P], 3). Raises: ValueError If the input is not a 2- or 3-dimensional image.

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

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') [

img-as-ubyte

img_as_ubyte skimage.util.img_as_ubyte(image, force_copy=False) [source] Convert an image to 8-bit unsigned integer format. Parameters: image : ndarray Input image. force_copy : bool Force a copy of the data, irrespective of its current dtype. Returns: out : ndarray of ubyte (uint8) Output image. Notes Negative input values will be clipped. Positive values are scaled between 0 and 255.

square

square skimage.morphology.square(width, dtype=) [source] Generates a flat, square-shaped structuring element. Every pixel along the perimeter has a chessboard distance no greater than radius (radius=floor(width/2)) pixels. Parameters: width : int The width and height of the square. Returns: selem : ndarray A structuring element consisting only of ones, i.e. every pixel belongs to the neighborhood. Other Parameters: dtype : data-type The data type of the structuring element.

cube

cube skimage.morphology.cube(width, dtype=) [source] Generates a cube-shaped structuring element. This is the 3D equivalent of a square. Every pixel along the perimeter has a chessboard distance no greater than radius (radius=floor(width/2)) pixels. Parameters: width : int The width, height and depth of the cube. Returns: selem : ndarray A structuring element consisting only of ones, i.e. every pixel belongs to the neighborhood. Other Parameters: dtype : data-type The data type of

module-skimage.viewer.canvastools

Module: viewer.canvastools skimage.viewer.canvastools.LineTool(manager) Widget for line selection in a plot. skimage.viewer.canvastools.PaintTool(...[, ...]) Widget for painting on top of a plot. skimage.viewer.canvastools.RectangleTool(manager) Widget for selecting a rectangular region in a plot. skimage.viewer.canvastools.ThickLineTool(manager) Widget for line selection in a plot.

img-as-bool

img_as_bool skimage.util.img_as_bool(image, force_copy=False) [source] Convert an image to boolean format. Parameters: image : ndarray Input image. force_copy : bool Force a copy of the data, irrespective of its current dtype. Returns: out : ndarray of bool (bool_) Output image. Notes The upper half of the input dtype’s positive range is True, and the lower half is False. All negative values (if present) are False.

module-skimage.data

Module: data Standard test images. For more images, see http://sipi.usc.edu/database/database.php skimage.data.astronaut() Colour image of the astronaut Eileen Collins. skimage.data.binary_blobs([length, ...]) Generate synthetic binary image with several rounded blob-like objects. skimage.data.camera() Gray-level “camera” image. skimage.data.checkerboard() Checkerboard image. skimage.data.chelsea() Chelsea the cat. skimage.data.clock() Motion blurred clock. skimage.data.coffee() Coffee