combine_stains
-
skimage.color.combine_stains(stains, conv_matrix)[source] -
Stain to RGB color space conversion.
Parameters: stains : array_like
The image in stain color space, in a 3-D array of shape
(.., .., 3).conv_matrix: ndarray
The stain separation matrix as described by G. Landini [R31].
Returns: out : ndarray
The image in RGB format, in a 3-D array of shape
(.., .., 3).Raises: ValueError
If
stainsis not a 3-D array of shape(.., .., 3).Notes
Stain combination matrices available in the
colormodule and their respective colorspace:-
rgb_from_hed: Hematoxylin + Eosin + DAB -
rgb_from_hdx: Hematoxylin + DAB -
rgb_from_fgx: Feulgen + Light Green -
rgb_from_bex: Giemsa stain : Methyl Blue + Eosin -
rgb_from_rbd: FastRed + FastBlue + DAB -
rgb_from_gdx: Methyl Green + DAB -
rgb_from_hax: Hematoxylin + AEC -
rgb_from_bro: Blue matrix Anilline Blue + Red matrix Azocarmine + Orange matrix Orange-G -
rgb_from_bpx: Methyl Blue + Ponceau Fuchsin -
rgb_from_ahx: Alcian Blue + Hematoxylin -
rgb_from_hpx: Hematoxylin + PAS
References
[R31] (1, 2) http://www.dentistry.bham.ac.uk/landinig/software/cdeconv/cdeconv.html Examples
>>> from skimage import data >>> from skimage.color import (separate_stains, combine_stains, ... hdx_from_rgb, rgb_from_hdx) >>> ihc = data.immunohistochemistry() >>> ihc_hdx = separate_stains(ihc, hdx_from_rgb) >>> ihc_rgb = combine_stains(ihc_hdx, rgb_from_hdx)
-
Please login to continue.