richardson-lucy

richardson_lucy skimage.restoration.richardson_lucy(image, psf, iterations=50, clip=True) [source] Richardson-Lucy deconvolution. Parameters: image : ndarray Input degraded image (can be N dimensional). psf : ndarray The point spread function. iterations : int Number of iterations. This parameter plays the role of regularisation. clip : boolean, optional True by default. If true, pixel value of the result above 1 or under -1 are thresholded for skimage pipeline compatibility. Retur

rgbcie2rgb

rgbcie2rgb skimage.color.rgbcie2rgb(rgbcie) [source] RGB CIE to RGB color space conversion. Parameters: rgbcie : array_like The image in RGB CIE format, in a 3-D array of shape (.., .., 3). Returns: out : ndarray The image in RGB format, in a 3-D array of shape (.., .., 3). Raises: ValueError If rgbcie is not a 3-D array of shape (.., .., 3). References [R54] http://en.wikipedia.org/wiki/CIE_1931_color_space Examples >>> from skimage import data >>> from skimage

rgb2xyz

rgb2xyz skimage.color.rgb2xyz(rgb) [source] RGB to XYZ color space conversion. Parameters: rgb : array_like The image in RGB format, in a 3- or 4-D array of shape (.., ..,[ ..,] 3). Returns: out : ndarray The image in XYZ format, in a 3- or 4-D array of shape (.., ..,[ ..,] 3). Raises: ValueError If rgb is not a 3- or 4-D array of shape (.., ..,[ ..,] 3). Notes The CIE XYZ color space is derived from the CIE RGB color space. Note however that this function converts from sRGB. Ref

rgb2rgbcie

rgb2rgbcie skimage.color.rgb2rgbcie(rgb) [source] RGB to RGB CIE color space conversion. Parameters: rgb : array_like The image in RGB format, in a 3-D array of shape (.., .., 3). Returns: out : ndarray The image in RGB CIE format, in a 3-D array of shape (.., .., 3). Raises: ValueError If rgb is not a 3-D array of shape (.., .., 3). References [R52] http://en.wikipedia.org/wiki/CIE_1931_color_space Examples >>> from skimage import data >>> from skimage.color im

rgb2luv

rgb2luv skimage.color.rgb2luv(rgb) [source] RGB to CIE-Luv color space conversion. Parameters: rgb : (M, N, [P,] 3) array_like The 3 or 4 dimensional image in RGB format. Final dimension denotes channels. Returns: out : (M, N, [P,] 3) ndarray The image in CIE Luv format. Same dimensions as input. Raises: ValueError If rgb is not a 3-D or 4-D array of shape (M, N, [P,] 3). Notes This function uses rgb2xyz and xyz2luv.

rgb2lab

rgb2lab skimage.color.rgb2lab(rgb) [source] RGB to lab color space conversion. Parameters: rgb : array_like The image in RGB format, in a 3- or 4-D array of shape (.., ..,[ ..,] 3). Returns: out : ndarray The image in Lab format, in a 3- or 4-D array of shape (.., ..,[ ..,] 3). Raises: ValueError If rgb is not a 3- or 4-D array of shape (.., ..,[ ..,] 3). Notes This function uses rgb2xyz and xyz2lab.

rgb2hsv

rgb2hsv skimage.color.rgb2hsv(rgb) [source] RGB to HSV color space conversion. Parameters: rgb : array_like The image in RGB format, in a 3-D array of shape (.., .., 3). Returns: out : ndarray The image in HSV format, in a 3-D array of shape (.., .., 3). Raises: ValueError If rgb is not a 3-D array of shape (.., .., 3). Notes The conversion assumes an input data range of [0, 1] for all color components. Conversion between RGB and HSV color spaces results in some loss of precision

rgb2hed

rgb2hed skimage.color.rgb2hed(rgb) [source] RGB to Haematoxylin-Eosin-DAB (HED) color space conversion. Parameters: rgb : array_like The image in RGB format, in a 3-D array of shape (.., .., 3). Returns: out : ndarray The image in HED format, in a 3-D array of shape (.., .., 3). Raises: ValueError If rgb is not a 3-D array of shape (.., .., 3). References [R50] A. C. Ruifrok and D. A. Johnston, “Quantification of histochemical staining by color deconvolution.,” Analytical and qua

rgb2grey

rgb2grey skimage.color.rgb2grey(rgb) [source] Compute luminance of an RGB image. Parameters: rgb : array_like The image in RGB format, in a 3-D array of shape (.., .., 3), or in RGBA format with shape (.., .., 4). Returns: out : ndarray The luminance image, a 2-D array. Raises: ValueError If rgb2gray is not a 3-D array of shape (.., .., 3) or (.., .., 4). Notes The weights used in this conversion are calibrated for contemporary CRT phosphors: Y = 0.2125 R + 0.7154 G + 0.0721 B I

rgb2gray

rgb2gray skimage.color.rgb2gray(rgb) [source] Compute luminance of an RGB image. Parameters: rgb : array_like The image in RGB format, in a 3-D array of shape (.., .., 3), or in RGBA format with shape (.., .., 4). Returns: out : ndarray The luminance image, a 2-D array. Raises: ValueError If rgb2gray is not a 3-D array of shape (.., .., 3) or (.., .., 4). Notes The weights used in this conversion are calibrated for contemporary CRT phosphors: Y = 0.2125 R + 0.7154 G + 0.0721 B I