當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


Python cucim.skimage.color.hed2rgb用法及代碼示例

用法:

cucim.skimage.color.hed2rgb(hed)

Haematoxylin-Eosin-DAB (HED) 到 RGB 顏色空間轉換。

參數

hed(…, 3) 數組

HED 顏色空間中的圖像。最終維度表示渠道。

返回

out(..., 3) ndarray

RGB 格式的圖像。與輸入相同的尺寸。

拋出

ValueError

如果 hed 不是至少具有形狀 (..., 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.

例子

>>> import cupy as cp
>>> from skimage import data
>>> from cucim.skimage.color import rgb2hed, hed2rgb
>>> ihc = cp.array(data.immunohistochemistry())
>>> ihc_hed = rgb2hed(ihc)
>>> ihc_rgb = hed2rgb(ihc_hed)

相關用法


注:本文由純淨天空篩選整理自rapids.ai大神的英文原創作品 cucim.skimage.color.hed2rgb。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。