sketch {sketcher} | R Documentation |
Apply the sketch effect on an image
Description
Apply the sketch effect on an image
Usage
sketch(
im,
style = 1,
lineweight = 1,
smooth = ceiling(lineweight),
gain = 0.02,
contrast = NULL,
shadow = 0,
max.size = 2048
)
Arguments
im |
an image (array). |
style |
a numeric (integer). Either 1 or 2. |
lineweight |
a numeric. Strength of lines. |
smooth |
a numeric (integer). Smoothness of image texture. |
gain |
a numeric between 0 and 1. Can be used to reduce noise in dim regions. |
contrast |
a numeric (integer). Adjusts the image contrast. |
shadow |
a numeric between 0 and 1 |
max.size |
maximum image resolution (width or height) of the output image |
Value
an image.
Examples
im = sketch(face)
plot(im)
## Not run:
im = im_load("path/to/your/image.jpg")
plot(im)
## End(Not run)
[Package sketcher version 0.1.3 Index]