Learn R Programming

colorizer (version 0.1.0)

clsave: Save Colorized and Juxtaposed Images

Description

clsave saves images that have been colorized using colorize or juxtaposed with juxtapose.

Usage

clsave(response, destfile = "")

Arguments

response

a response object of a colorize function call.

destfile

a character string or vector with the name where the images are saved.

Value

Besides saving, the function returns the response object invisibly.

Examples

Run this code
# NOT RUN {
# Save colorized images
res <- colorize(img = "https://upload.wikimedia.org/wikipedia/commons/9/9e/Breadfruit.jpg")
clsave(res, destfile = "colorized_version.jpg")
# }

Run the code above in your browser using DataLab