This is a development version (0.26.1rc0.dev0) and may be unstable.Go to latest (0.26.1rc0.dev0+git20260530.b607368ff)
{ } Raw JSON

bundles / skimage 0.26.1rc0.dev0 / skimage / color / colorconv / hed2rgb

function

skimage.color.colorconv:hed2rgb

source: /_skimage2/color/colorconv.py:1618

Signature

def hed2rgb(hed, *, channel_axis = -1)

Summary

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

Parameters

hed : array_like of shape (..., C=3, ...)

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

channel_axis : int, optional

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

Returns

out : ndarray 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, ...).

Examples

from skimage import data
from skimage.color import rgb2hed, hed2rgb
ihc = data.immunohistochemistry()
ihc_hed = rgb2hed(ihc)
ihc_rgb = hed2rgb(ihc_hed)
✓

Aliases

  • skimage.color.hed2rgb