survey {sketcher}R Documentation

Create multiple sketches at once and combine them into a single image

Description

It is often necessary to find optimal sketch style parameters for your task. With this function, you can easily compare the effects of different style parameters.

Usage

survey(
  im,
  style = 1,
  weight_levels = c(1, 2, 4),
  smooth_levels = c(1, 2, 4),
  gain = 0.02,
  contrast = NULL,
  shadow = 0,
  verbose = TRUE
)

Arguments

im

an image.

style

numeric (integer). Either 1 (edge-focused) or 2 (smooth gradient)

weight_levels

numeric (integer). a vector of lineweight values

smooth_levels

numeric (integer). a vector of smooth values

gain

a numeric between 0 and 1. Can be used to reduce noise in dim regions.

contrast

numeric (integer). Adjusts the image contrast.

shadow

a numeric between 0 and 1

verbose

If TRUE (default), progress information is displayed in the Console.

Value

an array of the sketched image.

Examples


im = survey(face, style = 1, weight_levels = c(1, 3), smooth_levels = c(1, 3), shadow = 0.3)
plot(im)


[Package sketcher version 0.1.3 Index]