R/getBrightness.R

Defines functions getBrightness

Documented in getBrightness

#' 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
}
bnasr/wiad documentation built on July 21, 2024, 2:38 p.m.