R/image_pdc_PGBpower.R

image_pdc_RGBpower<-function(m,Rp = .2,
                             Gp = 1,
                             Bp = 5){
  re = rbind(m,m,m)
  dim(re) = c(nrow(m),ncol(m),3)
  re[,,1] = m^Rp
  re[,,2] = m^Gp
  re[,,3] = m^Bp
  re
}
HaoLi111/rVividImg documentation built on July 4, 2019, 6:43 p.m.