interactive_shade: interactive shading

View source: R/interactive_shade.R

interactive_shadeR Documentation

interactive shading

Description

Using image_shade of 'magick' interactively. azimuth and elevation are parameters of image_shade. See reference manual of 'magick' for detail.

Usage

interactive_shade(
  image,
  color = FALSE,
  range_max_azimuth,
  range_min_azimuth,
  range_max_elevation,
  range_min_elevation,
  resolution = 0.1,
  return_param = FALSE,
  scale
)

Arguments

image

a magick image object

color

Set to true to shade the red, green, and blue components of the image

range_max_azimuth

define maximum in slider of azimuth

range_min_azimuth

define maximum in slider of azimuth

range_max_elevation

define maximum in slider of elevation

range_min_elevation

define maximum in slider of elevation

resolution

resolution of slider

return_param

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

Author(s)

Shota Ochi

Examples


if (interactive())
{
  interactive_shade(wizard)
}


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