bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / skimage / color / colorconv / hed2rgb
function
skimage.color.colorconv:hed2rgb
source: /dev/scikit-image/src/skimage/color/colorconv.py:1623
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, optionalThis 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
: ValueErrorIf
hedis 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