utils_colorspace {pliman} | R Documentation |
Convert between colour spaces
Description
rgb_to_srgb()
Transforms colors from RGB space (red/green/blue) to
Standard Red Green Blue (sRGB), using a gamma correction of 2.2.
-
rgb_to_hsb()
Transforms colors from RGB space (red/green/blue) to HSB space (hue/saturation/brightness). -
rgb_to_lab()
Transforms colors from RGB space (red/green/blue) to CIE-LAB space
It is assumed that
Usage
rgb_to_hsb(object)
rgb_to_srgb(object)
rgb_to_lab(object)
Arguments
object |
An |
Value
A data frame with the columns of the converted color space
Author(s)
Tiago Olivoto tiagoolivoto@gmail.com
Examples
if(interactive()){
library(pliman)
img <- image_pliman("sev_leaf.jpg")
rgb_to_lab(img)
# analyze the object and convert the pixels
anal <- analyze_objects(img, object_index = "B", pixel_level_index = TRUE)
rgb_to_lab(anal)
}
[Package pliman version 2.1.0 Index]