quarta-feira, 4 de março de 2015

Color extraction with R

http://ift.tt/1DXu6r8

Given all the attention the internet has given to the colors of this dress, I thought it would be interesting to look at the capabilities for extracting colors in R. R has a number of packages for importing images in various file formats, including PNG, JPG, TIFF, and BMP. (The readbitmap package works with all of these.) In each case, the result is a 3-dimensional R array containing a 2-D image layer for each of the color channels (for example red, green and blue for color images). You can then manipulate the array as ordinary data to extract color information....

from R-bloggers http://ift.tt/xdvlrq

Nenhum comentário:

Postar um comentário

Leave your comment here!