interactive_composite: interactive image compositing

View source: R/interactive_composite.R

interactive_compositeR Documentation

interactive image compositing

Description

Using image_composite of 'magick' interactively. offset is a parameter of image_composite. see reference manual of 'magick' for detail.

Usage

interactive_composite(
  image,
  composite_image,
  operator = "atop",
  compose_args = "",
  resolution = 1,
  return_param = FALSE,
  scale
)

Arguments

image

a magick image object

composite_image

composition image

operator

string with a composite operator

compose_args

additional arguments needed for some composite operations

resolution

resolution of slider

return_param

If return_param is TRUE, returns values of offset. 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

magick a image object or values of offset

Author(s)

Shota Ochi

Examples


if (interactive())
{
  interactive_composite(wizard, rose)
}


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