View source: R/image-to-prep-mosaic.R
Match raw color channel values to a smaller subset of colors.
image_list |
List output from scale_image(). Contains an element |
method |
Default 'cie94'. The method to use for comparison. Either 'brickr_classic', 'euclidean', 'cie1976', 'cie94', 'cie2000', or 'cmc'.
'brickr_classic' is an explicit euclidean distance formula, but yield different results than 'euclidean' in farver.
See |
color_table |
Defaults to |
color_palette |
Brick color rarity to use. Defaults to all colors: 'universal' (most common), 'generic', and 'special' (least common).
This is useful when trying to build the mosaic out of real bricks.
Use "bw" for only grayscale bricks. Ignored if a |
trans_bg |
If |
dithering |
Improves color of large, photo-realistic mosaics. |
contrast |
For |
default_piece_type |
Piece type to use in absence of piece_type column. |
A list with element Img_lego
containing a data frame of the x- & y-coordinates, R, G, B channels, and mapped color of each brick (pixel).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.