fromPolar: Convert CIE Lab and Luv from Polar Form to Rectangular Form
Description
Convert the Polar Form of CIE Lab and Luv to Rectangular Form
Usage
LabfromLCHab( LCHab )
LuvfromLCHuv( LCHuv )
Arguments
LCHab
a numeric Nx3 matrix with CIE LCHab coordinates in the rows, or a vector that can be converted to such a matrix, by row. The hue angle H must be in degrees.
LCHuv
a numeric Nx3 matrix with CIE LCHuv coordinates in the rows, or a vector that can be converted to such a matrix, by row. The hue angle H must be in degrees.
Value
LabfromLCHab()
returns a numeric Nx3 matrix with CIE Lab coordinates in the rows.
LuvfromLCHuv()
returns a numeric Nx3 matrix with CIE Luv coordinates in the rows.
In both cases, the rownames are copied from input to output.
If the input is invalid, the functions return NULL.