interactive_motion_blur: interactive motion blurring

View source: R/interactive_motion_blur.R

interactive_motion_blurR Documentation

interactive motion blurring

Description

Using image_motion_blur of 'magick' interactively. radius and sigma and angle are parameters of image_motion_blur. See reference manual of 'magick' for detail.

Usage

interactive_motion_blur(
  image,
  range_max_radius = 100,
  range_max_sigma = 100,
  range_max_angle = 360,
  resolution = 0.1,
  return_param = FALSE,
  scale
)

Arguments

image

a magick image object

range_max_radius

define maximum in slider of radius. must be positive.

range_max_sigma

define maximum in slider of sigma. must be positive.

range_max_angle

define maximum in slider of angle. must be positive.

resolution

resolution of slider

return_param

If return_param is TRUE, returns values of radius and sigma and angle. 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 radius, sigma, and angle

Author(s)

Shota Ochi

Examples


if (interactive())
{
  interactive_motion_blur(wizard)
}


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