bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / skimage / color / colorconv / hsv2rgb
function
skimage.color.colorconv:hsv2rgb
source: /dev/scikit-image/src/skimage/color/colorconv.py:350
Signature
def hsv2rgb(hsv, *, channel_axis = -1)Summary
HSV to RGB color space conversion.
Parameters
hsv: (..., C=3, ...) array_likeThe image in HSV format. By default, the final dimension denotes channels.
channel_axis: int, optionalThis parameter indicates which axis of the array corresponds to channels.
Returns
out: (..., C=3, ...) ndarrayThe image in RGB format. Same dimensions as input.
Raises
: ValueErrorIf
hsvis not at least 2-D with shape (..., C=3, ...).
Notes
Conversion between RGB and HSV color spaces results in some loss of precision, due to integer arithmetic and rounding [1].
Examples
from skimage import data img = data.astronaut()✓
img_hsv = rgb2hsv(img) img_rgb = hsv2rgb(img_hsv)⚠
Aliases
skimage.color.hsv2rgb