#' The brightness map of an image (0 to 1).
#'
#' @param rgbArray a 3-column array of R, G abd B color channels
#' @return brightness matrix
#' @keywords internal
#'
getBrightness <-
function(rgbArray){
bI <- apply(rgbArray,
MARGIN = 1:2,
FUN = max)
bI
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.