powered by
Apply the sketch effect on an image
sketch( im, style = 1, lineweight = 1, smooth = ceiling(lineweight), gain = 0.02, contrast = NULL, shadow = 0, max.size = 2048 )
an image (array).
a numeric (integer). Either 1 or 2.
a numeric. Strength of lines.
a numeric (integer). Smoothness of image texture.
a numeric between 0 and 1. Can be used to reduce noise in dim regions.
a numeric (integer). Adjusts the image contrast.
a numeric between 0 and 1
maximum image resolution (width or height) of the output image
an image.
# NOT RUN { im = sketch(face) plot(im) # } # NOT RUN { im = im_load("path/to/your/image.jpg") plot(im) # }
Run the code above in your browser using DataLab