View source: R/interactive_canny.R
interactive_canny | R Documentation |
Using image_canny of 'magick' interactively. radius, sigma, lower%, and upper% are parameters of image_canny. See reference manual of 'magick' for detail.
interactive_canny(
image,
range_max_radius = 30,
range_max_sigma = 2,
resolution = 0.1,
return_param = FALSE,
scale
)
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. |
resolution |
resolution of slider |
return_param |
If return_param is TRUE, returns values of radius, sigma, lower%, and upper% represented in the format of 'magick'. 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. |
a magick image object or values of radius, sigma, lower%, and upper% represented in the format of 'magick'
Shota Ochi
if (interactive())
{
interactive_canny(wizard)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.