ImageTools
HSVtoRGB
convert HSV color image to RGB color image
Calling Sequence
Parameters
Options
Description
Examples
HSVtoRGB(img, opts)
img
-
Image; input image
opts
(optional) equation(s) of the form option = value; specify options for the HSVtoRGB command
inplace = truefalse
Specifies whether the operation is performed in-place. This can be used to avoid allocating memory. The default is false.
output = Image
Specifies a data structure into which the output is written. This can be used to avoid allocating memory. The size and number of layers must match that of the input. The dimensions of the output image are adjusted so that the row and column indices match the input. The default is NULL.
The HSVtoRGB command converts a color image with an HSV color representation to an RGB color representation.
The img parameter is the input image and must be of type ColorImage or ColorAImage.
with⁡ImageTools:
img_h≔360⁢Create⁡100,200,r,c↦c,fit:
img_s≔Create⁡100,200,r,c↦evalf⁡sin⁡0.0025⋅c2+r2,fit:
img_v≔Create⁡100,200,r,c↦r,fit:
img_hsv≔CombineLayers⁡img_h,img_s,img_v
img_rgb≔HSVtoRGB⁡img_hsv
img_r≔GetLayer⁡img_rgb,1
img_g≔GetLayer⁡img_rgb,2
img_b≔GetLayer⁡img_rgb,3
Embed⁡FitIntensity⁡img_h,img_s,img_v
Embed⁡img_rgb
Embed⁡img_r,img_g,img_b
See Also
ImageTools[RGBtoHSV]
Download Help Document