Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


IFC (version 0.1.6)

cpp_M_HSV2RGB: Matrix HSV to RGB Conversion

Description

Converts grayscale [0,1] mat to 3D rgb array according to hsv space. hue and saturation determines tint whereas v is given by each element of mat

Value

a NumericVector with 3 dimensions attribute i.e. a 3D array - 1st Dim is matrix rows count, - 2nd Dim is matrix cols count, - 3rd Dim is RGB

Arguments

mat

NumericMatrix, [0,1].

h

double, [0,1], hue. Default is 0.0

s

double, [0,1], saturation. Default is 0.0