adjust-sigmoid

adjust_sigmoid skimage.exposure.adjust_sigmoid(image, cutoff=0.5, gain=10, inv=False) [source] Performs Sigmoid Correction on the input image. Also known as Contrast Adjustment. This function transforms the input image pixelwise according to the equation O = 1/(1 + exp*(gain*(cutoff - I))) after scaling each pixel to the range 0 to 1. Parameters: image : ndarray Input image. cutoff : float Cutoff of the sigmoid function that shifts the characteristic curve in horizontal direction. Defaul

adjust-gamma

adjust_gamma skimage.exposure.adjust_gamma(image, gamma=1, gain=1) [source] Performs Gamma Correction on the input image. Also known as Power Law Transform. This function transforms the input image pixelwise according to the equation O = I**gamma after scaling each pixel to the range 0 to 1. Parameters: image : ndarray Input image. gamma : float Non negative real number. Default value is 1. gain : float The constant multiplier. Default value is 1. Returns: out : ndarray Gamma corre

active-contour

active_contour skimage.segmentation.active_contour(image, snake, alpha=0.01, beta=0.1, w_line=0, w_edge=1, gamma=0.01, bc='periodic', max_px_move=1.0, max_iterations=2500, convergence=0.1) [source] Active contour model. Active contours by fitting snakes to features of images. Supports single and multichannel 2D images. Snakes can be periodic (for segmentation) or have fixed and/or free ends. Parameters: image : (N, M) or (N, M, 3) ndarray Input image. snake : (N, 2) ndarray Initialisatio

A crash course on NumPy for images

A crash course on NumPy for images Images manipulated by scikit-image are simply NumPy arrays. Hence, a large fraction of operations on images will just consist in using NumPy: >>> from skimage import data >>> camera = data.camera() >>> type(camera) <type 'numpy.ndarray'> Retrieving the geometry of the image and the number of pixels: >>> camera.shape (512, 512) >>> camera.size 262144 Retrieving statistical information about gray values: >&