skimage2.color.hed2rgb#

skimage2.color.hed2rgb(hed, *, channel_axis=-1)[source]#

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

Parameters:
hedarray_like of shape (…, C=3, …)

The image in the HED color space. By default, the final dimension denotes channels.

channel_axisint, optional

This parameter indicates which axis of the array corresponds to channels.

Added in version 0.19: channel_axis was added in 0.19.

Returns:
outndarray of shape (…, C=3, …)

The image in RGB. Same dimensions as input.

Raises:
ValueError

If hed is not at least 2-D with shape (…, C=3, …).

References

[1]

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 _skimage2 import data
>>> from _skimage2.color import rgb2hed, hed2rgb
>>> ihc = data.immunohistochemistry()
>>> ihc_hed = rgb2hed(ihc)
>>> ihc_rgb = hed2rgb(ihc_hed)