用法:
skimage.color.combine_stains(stains, conv_matrix, *, channel_axis=- 1)
染色到 RGB 顏色空間轉換。
- stains:(..., 3, ...) 數組
染色顏色空間中的圖像。默認情況下,最終維度表示通道。
- conv_matrix: ndarray:
G. Landini [1] 說明的汙點分離矩陣。
- channel_axis:int 可選
該參數指示數組的哪個軸對應於通道。
- out:(..., 3, ...)
RGB 格式的圖像。與輸入相同的尺寸。
- ValueError
如果汙漬不是至少 2-D 的形狀 (..., 3, ...)。
參數:
返回:
拋出:
注意:
color
模塊中可用的染色組合矩陣及其各自的色彩空間:rgb_from_hed
:蘇木精 + 曙紅 + DABrgb_from_hdx
: 蘇木精 + DABrgb_from_fgx
: Feulgen + 淺綠色rgb_from_bex
:吉姆薩染色劑:甲基藍 + 曙紅rgb_from_rbd
: FastRed + FastBlue + DABrgb_from_gdx
:甲基綠 + DABrgb_from_hax
:蘇木精 + AECrgb_from_bro
:藍色矩陣苯胺藍+紅色矩陣偶氮胭脂紅+橙色矩陣Orange-Grgb_from_bpx
: 甲基藍 + 麗春紅rgb_from_ahx
: 阿新藍 + 蘇木精rgb_from_hpx
: 蘇木精 + PAS
參考:
- 1
- 2
A. C. Ruifrok and D. A. Johnston, “Quantification of histochemical staining by color deconvolution,” Anal. Quant. Cytol. Histol., vol. 23, no. 4, pp. 291-299, Aug. 2001.
例子:
>>> from skimage import data >>> from skimage.color import (separate_stains, combine_stains, ... hdx_from_rgb, rgb_from_hdx) >>> ihc = data.immunohistochemistry() >>> ihc_hdx = separate_stains(ihc, hdx_from_rgb) >>> ihc_rgb = combine_stains(ihc_hdx, rgb_from_hdx)
相關用法
- Python skimage.color.convert_colorspace用法及代碼示例
- Python skimage.color.lab2lch用法及代碼示例
- Python skimage.color.rgb2rgbcie用法及代碼示例
- Python skimage.color.rgb2xyz用法及代碼示例
- Python skimage.color.xyz2rgb用法及代碼示例
- Python skimage.color.rgba2rgb用法及代碼示例
- Python skimage.color.separate_stains用法及代碼示例
- Python skimage.color.rgb2gray用法及代碼示例
- Python skimage.color.rgb2hsv用法及代碼示例
- Python skimage.color.rgbcie2rgb用法及代碼示例
- Python skimage.color.hsv2rgb用法及代碼示例
- Python skimage.color.rgb2hed用法及代碼示例
- Python skimage.color.lch2lab用法及代碼示例
- Python skimage.color.xyz2lab用法及代碼示例
- Python skimage.color.hed2rgb用法及代碼示例
- Python skimage.feature.graycomatrix用法及代碼示例
- Python skimage.draw.random_shapes用法及代碼示例
- Python skimage.feature.blob_doh用法及代碼示例
- Python skimage.feature.blob_dog用法及代碼示例
- Python skimage.filters.unsharp_mask用法及代碼示例
注:本文由純淨天空篩選整理自scikit-image.org大神的英文原創作品 skimage.color.combine_stains。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。