interactive_despeckle: interactive despeckling

View source: R/interactive_despeckle.R

interactive_despeckleR Documentation

interactive despeckling

Description

Using image_despeckle of 'magick' interactively. times is a parameter of image_despeckle. See reference manual of 'magick' for detail.

Usage

interactive_despeckle(
  image,
  range_max = 50,
  resolution = 1,
  return_param = FALSE,
  scale
)

Arguments

image

a magick image object

range_max

define maximum in slider. must be positive.

resolution

resolution of slider

return_param

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

Author(s)

Shota Ochi

Examples


if (interactive())
{
  interactive_despeckle(wizard)
}


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