hed2rgb

hed2rgb

skimage.color.hed2rgb(hed) [source]

Haematoxylin-Eosin-DAB (HED) to RGB color space conversion.

Parameters:

hed : array_like

The image in the HED color space, in a 3-D array of shape (.., .., 3).

Returns:

out : ndarray

The image in RGB, in a 3-D array of shape (.., .., 3).

Raises:

ValueError

If hed is not a 3-D array of shape (.., .., 3).

References

[R42] A. C. Ruifrok and D. A. Johnston, “Quantification of histochemical staining by color deconvolution.,” Analytical and quantitative cytology and histology / the International Academy of Cytology [and] American Society of Cytology, vol. 23, no. 4, pp. 291-9, Aug. 2001.

Examples

>>> from skimage import data
>>> from skimage.color import rgb2hed, hed2rgb
>>> ihc = data.immunohistochemistry()
>>> ihc_hed = rgb2hed(ihc)
>>> ihc_rgb = hed2rgb(ihc_hed)
doc_scikit_image
2017-01-12 17:21:11
Comments
Leave a Comment

Please login to continue.