bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / skimage / color / colorconv / rgb2hed
function
skimage.color.colorconv:rgb2hed
source: /dev/scikit-image/src/skimage/color/colorconv.py:1580
Signature
def rgb2hed(rgb, *, channel_axis = -1)Summary
RGB to Haematoxylin-Eosin-DAB (HED) color space conversion.
Parameters
rgb: array_like of shape (..., C=3, ...)The image in RGB format. 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 HED format. Same dimensions as input.
Raises
: ValueErrorIf
rgbis not at least 2-D with shape (..., C=3, ...).
Examples
from skimage import data from skimage.color import rgb2hed ihc = data.immunohistochemistry() ihc_hed = rgb2hed(ihc)✓
Aliases
skimage.color.rgb2hed