interactive_modulate: interactive modulating

View source: R/interactive_modulate.R

interactive_modulateR Documentation

interactive modulating

Description

Using image_modulate of 'magick' interactively. brightness and saturation and hue are parameters of image_modulate. See reference manual of 'magick' for detail.

Usage

interactive_modulate(
  image,
  range_max_brightness = 200,
  range_max_saturation = 200,
  range_max_hue = 200,
  resolution = 0.1,
  return_param = FALSE,
  scale
)

Arguments

image

a magick image object

range_max_brightness

define maximum in slider of brightness. must be positive.

range_max_saturation

define maximum in slider of saturation. must be positive.

range_max_hue

define maximum in slider of hue. must be positive.

resolution

resolution of slider

return_param

If return_param is TRUE, returns values of brightness and saturation and hue. If return_param is FALSE, returns a magick image object.

scale

geometry to be passed to image_scale function of magick package. image is scaled just for preview and result image is not scaled if scale is given.

Value

a magick image object or values of brightness, saturation, and hue

Author(s)

Shota Ochi

Examples


if (interactive())
{
  interactive_modulate(wizard)
}


magickGUI documentation built on Sept. 11, 2023, 5:06 p.m.