用法:
cucim.skimage.color.hsv2rgb(hsv)
HSV 到 RGB 顏色空間轉換。
- hsv:(…, 3) 數組
HSV 格式的圖像。最終維度表示渠道。
- out:(..., 3) ndarray
RGB 格式的圖像。與輸入相同的尺寸。
- ValueError
如果
hsv
不是至少具有形狀 (..., 3) 的二維。
參數:
返回:
拋出:
注意:
由於整數運算和舍入 [1] ,RGB 和 HSV 顏色空間之間的轉換會導致一些精度損失。
參考:
例子:
>>> import cupy as cp >>> from skimage import data >>> img = cp.array(data.astronaut()) >>> img_hsv = rgb2hsv(img) >>> img_rgb = hsv2rgb(img_hsv)
相關用法
- Python cucim.skimage.color.hed2rgb用法及代碼示例
- Python cucim.skimage.color.lch2lab用法及代碼示例
- Python cucim.skimage.color.rgb2gray用法及代碼示例
- 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.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.lab2lch用法及代碼示例
- 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.hsv2rgb。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。