survey: Create multiple sketches at once and combine them into a...

Description Usage Arguments Value Examples

View source: R/utils.R

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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

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

sketcher documentation built on July 2, 2020, 4:06 a.m.

Related to survey in sketcher...