用法:
cucim.skimage.color.lab2lch(lab)
CIE-LAB 到 CIE-LCH 顏色空間轉換。
LCH 是 LAB(笛卡爾)色彩空間的圓柱表示
- lab:(…, 3) 數組
CIE-LAB 格式的 N-D 圖像。最後一個(
N+1
-th)維度必須至少有 3 個元素,對應於L
,a
和b
顏色通道。複製後續元素。
- out:(..., 3) ndarray
LCH 格式的圖像,在 N-D 數組中,與輸入
lab
具有相同的形狀。
- ValueError
如果
lch
沒有至少 3 個顏色通道(即 l、a、b)。
參數:
返回:
拋出:
注意:
色調表示為
(0, 2*pi)
之間的角度例子:
>>> from skimage import data >>> from cucim.skimage.color import rgb2lab, lab2lch >>> img = cp.array(data.astronaut()) >>> img_lab = rgb2lab(img) >>> img_lch = lab2lch(img_lab)
相關用法
- Python cucim.skimage.color.lch2lab用法及代碼示例
- Python cucim.skimage.color.rgb2gray用法及代碼示例
- Python cucim.skimage.color.hsv2rgb用法及代碼示例
- Python cucim.skimage.color.rgb2hed用法及代碼示例
- Python cucim.skimage.color.rgb2hsv用法及代碼示例
- Python cucim.skimage.color.combine_stains用法及代碼示例
- Python cucim.skimage.color.separate_stains用法及代碼示例
- Python cucim.skimage.color.rgb2rgbcie用法及代碼示例
- Python cucim.skimage.color.hed2rgb用法及代碼示例
- Python cucim.skimage.color.rgb2xyz用法及代碼示例
- Python cucim.skimage.color.convert_colorspace用法及代碼示例
- Python cucim.skimage.color.xyz2lab用法及代碼示例
- Python cucim.skimage.color.rgb2grey用法及代碼示例
- Python cucim.skimage.color.rgba2rgb用法及代碼示例
- Python cucim.skimage.color.xyz2luv用法及代碼示例
- Python cucim.skimage.color.rgbcie2rgb用法及代碼示例
- Python cucim.skimage.color.xyz2rgb用法及代碼示例
- Python cucim.skimage.feature.shape_index用法及代碼示例
- Python cucim.skimage.restoration.richardson_lucy用法及代碼示例
- Python cucim.skimage.util.invert用法及代碼示例
注:本文由純淨天空篩選整理自rapids.ai大神的英文原創作品 cucim.skimage.color.lab2lch。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。