View source: R/image_to_scaled.r
image_to_scaled | R Documentation |
Scale the size of an image, in pixel. Process into a data frame.
image |
A raster array from an image. |
size_unit |
The unit by which the image will be scaled. Can be one of the following options: 'stitches', 'inches', or 'cm' |
img_size |
Size of output image, in the unit determined by size_unit. Use a single value (e.g. |
cloth_count |
Specify the aida cloth count to work with. Set to 16 by default. |
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 colour of each stitch (pixel).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.