censure

CENSURE class skimage.feature.CENSURE(min_scale=1, max_scale=7, mode='DoB', non_max_threshold=0.15, line_threshold=10) [source] Bases: skimage.feature.util.FeatureDetector CENSURE keypoint detector. min_scale : int, optional Minimum scale to extract keypoints from. max_scale : int, optional Maximum scale to extract keypoints from. The keypoints will be extracted from all the scales except the first and the last i.e. from the scales in the range [min_scale + 1, max_scale - 1]. The filter

rectangle

rectangle skimage.morphology.rectangle(width, height, dtype=) [source] Generates a flat, rectangular-shaped structuring element. Every pixel in the rectangle generated for a given width and given height belongs to the neighborhood. Parameters: width : int The width of the rectangle. height : int The height of the rectangle. Returns: selem : ndarray A structuring element consisting only of ones, i.e. every pixel belongs to the neighborhood. Other Parameters: dtype : data-type The

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

gradient

gradient skimage.filters.rank.gradient(image, selem, out=None, mask=None, shift_x=False, shift_y=False) [source] Return local gradient of an image (i.e. local maximum - local minimum). 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 neighbor

img-as-float

img_as_float skimage.util.img_as_float(image, force_copy=False) [source] Convert an image to double-precision floating point format. Parameters: image : ndarray Input image. force_copy : bool Force a copy of the data, irrespective of its current dtype. Returns: out : ndarray of float64 Output image. Notes The range of a floating point image is [0.0, 1.0] or [-1.0, 1.0] when converting from unsigned or signed datatypes, respectively.

iradon-sart

iradon_sart skimage.transform.iradon_sart(radon_image, theta=None, image=None, projection_shifts=None, clip=None, relaxation=0.15) [source] Inverse radon transform Reconstruct an image from the radon transform, using a single iteration of the Simultaneous Algebraic Reconstruction Technique (SART) algorithm. Parameters: radon_image : 2D array, dtype=float Image containing radon transform (sinogram). Each column of the image corresponds to a projection along a different angle. The tomography

pop

pop skimage.filters.rank.pop(image, selem, out=None, mask=None, shift_x=False, shift_y=False) [source] Return the local number (population) of pixels. The number of pixels is defined as the number of pixels which are included in the structuring element and the mask. 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

sobel

sobel skimage.filters.sobel(image, mask=None) [source] Find the edge magnitude 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. See also scharr, prewitt, roberts, feature.canny Notes Take the square root of th

pad

pad skimage.util.pad(array, pad_width, mode=None, **kwargs) [source] Pads an array. Parameters: array : array_like of rank N Input array pad_width : {sequence, array_like, int} Number of values padded to the edges of each axis. ((before_1, after_1), ... (before_N, after_N)) unique pad widths for each axis. ((before, after),) yields same before and after pad for each axis. (pad,) or int is a shortcut for before = after = pad width for all axes. mode : str or function One of the followin

utility-functions

Utility Functions img_as_float Convert an image to floating point format, with values in [0, 1]. img_as_uint Convert an image to unsigned integer format, with values in [0, 65535]. img_as_int Convert an image to signed integer format, with values in [-32768, 32767]. img_as_ubyte Convert an image to unsigned byte format, with values in [0, 255]. skimage.dtype_limits(image[, clip_negative]) Return intensity limits, i.e. skimage.img_as_bool(image[, force_copy]) Convert an image to boolean form