
Transforms RGB values into proportions (rgb values)
Source:R/transform_colours.R
transform_colours.RdThis function transforms an array of RGB absolute values into a similar array containing the proportion of each band (= colour variable): r g and b.
Arguments
- image_array
an array of class
image_arraycreated by functionread_image().