Description Usage Arguments Value Methods (by class) See Also Examples
Wrapper function of sRGB
and
LAB
that convert colors from sRGB to LAB.
1 2 3 4 5 6 7 8 9 10 |
x |
numeric, matrix or |
... |
Additional arguments as for |
Matrix, or CanopyPhoto
.
matrix
: Each row should represent a color. Argument x
must have three columns.
numeric
: Convert a single color from sRGB to LAB. Argument x
must be of length three. The output is a matrix.
CanopyPhoto
: The output is a CanopyPhoto
with layer names L, A and B.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | sRGB2LAB(c(0.5,0.7,0.5))
x <- sRGB2LAB(matrix(c(normalize(1:90, 1, 90)), ncol = 3))
str(x)
head(x)
x <- loadPhoto()
x <- normalize(x, 0, 255)
x <- sRGB2LAB(x)
x
plot(x)
x <- system.file("external/Black_caiman_Macrofotografie_2.jpg", package="caiman")
x <- loadPhoto(x)
plotRGB(x)
x <- normalize(x, 0, 255)
x <- sRGB2LAB(x)
plot(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.