R/image-to-prep-mosaic.R
image_to_scaled.RdScale an image raster array to a small number of pixels. Process into a data frame. Internal function.
| image | A raster array from an image. |
|---|---|
| img_size | Size of output image in pixel, where one pixel = one 'brick'. Use a single value (e.g. |
| brightness | A value >1 will increase the brightness of the image while a positive value <1 will decrease the brightness. |
| warhol | Array of values |
A list with element Img_scaled containing a data frame of the x- & y-coordinates, R, G, B channels, and hex color of each brick (pixel).