joelcarlson / RImagePalette

Create a representative palette from an image.
https://github.com/joelcarlson/RImagePalette
Other
45 stars 1 forks source link

Covnert output to CIELAB color space #1

Open joelcarlson opened 8 years ago

joelcarlson commented 8 years ago

Output palettes are not always particularly vibrant. An option to convert to a more attractive colorspace would be nice.

That is, in the median cut algorithm cut across LAB space, rather than RGB space.

eg.

x <-hex2RGB(lifeAquaticPalette)
as(x,"LAB")

https://cran.r-project.org/web/packages/colorspace/colorspace.pdf

hadley commented 8 years ago

:+1: