R/color_dist.R

Defines functions color_dist

# distance of two colour in RGB
color_dist <- function(a_vec, b_vec) {
  sum((a_vec - b_vec)^2)
}
TengMCing/im2pix documentation built on Feb. 2, 2021, 11:43 a.m.