当前位置: 首页>>代码示例 >>用法及示例精选 >>正文


Python skimage.color.rgb2hed用法及代码示例


用法:

skimage.color.rgb2hed(rgb, *, channel_axis=- 1)

RGB 到Haematoxylin-Eosin-DAB (HED) 颜色空间转换。

参数

rgb(..., 3, ...) 数组

RGB 格式的图像。默认情况下,最终维度表示通道。

channel_axisint 可选

该参数指示数组的哪个轴对应于通道。

返回

out(..., 3, ...)

HED 格式的图像。与输入相同的尺寸。

抛出

ValueError

如果 rgb 不是至少 2-D 形状 (..., 3, ...)。

参考

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.

例子

>>> from skimage import data
>>> from skimage.color import rgb2hed
>>> ihc = data.immunohistochemistry()
>>> ihc_hed = rgb2hed(ihc)

相关用法


注:本文由纯净天空筛选整理自scikit-image.org大神的英文原创作品 skimage.color.rgb2hed。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。