im_randomize: Apply a pixel randomization effect

View source: R/pictplot.R

im_randomizeR Documentation

Apply a pixel randomization effect

Description

Apply a pixel randomization effect

Usage

im_randomize(
  im,
  size = 16,
  direction = "xy",
  shuffle = TRUE,
  fraction = 1,
  noise = 1
)

Arguments

im

an image

size

box size in pixel (default is 1)

direction

shuffle direction (either "x", "y", or "xy"). default is "xy".

shuffle

shuffle along the direction. either TRUE (default) or FALSE

fraction

a fraction of stripes are shuffled. a numeric value between 0 and 1 (default is 1).

noise

percent of noise. a numeric value between 0 and 1 (default is 1).

Value

an image

Examples

plot(im_randomize(regatta, size = 16, direction = "xy", shuffle = TRUE, fraction = 1, noise = 1))

tsuda16k/pictplot documentation built on March 1, 2023, 8:44 p.m.