roberts

roberts skimage.filters.roberts(image, mask=None) [source] Find the edge magnitude using Roberts’ cross operator. 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 Roberts’ Cross edge map. See also sobel, scharr, prewitt, feature.canny Examples >>

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

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

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

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.

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.

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

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

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

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