Description Usage Arguments Value Examples
Reduce image color to either 2 or 8 colors for cartoonized effect
1 |
input_path |
character the image file path |
style |
string vector selected two colors from c("white", "black", "red", "green", "blue", "yellow", "pink", "aqua" ) or "eight" for eight colors |
output_path |
character if not Null, the modified image will be saved in the provided folder path and name |
modified image array
1 2 3 | input_path <- system.file("tmp_image", "mandrill.jpg", package = "rimager")
new <- reducolor(input_path, c("black", "white"), "new.jpg")
OpenImageR::imageShow(new)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.