Title: | GUI Tools for Interactive Image Processing with 'magick' |
---|---|
Description: | Enables us to use the functions of the package 'magick' interactively. |
Authors: | Shota Ochi [aut, cre] |
Maintainer: | Shota Ochi <[email protected]> |
License: | GPL-3 |
Version: | 1.3.1 |
Built: | 2025-02-02 03:10:15 UTC |
Source: | https://github.com/shotaochi/magickgui |
Using image_annotate of 'magick' interactively. location, degrees, size, weight, and kerning are parameters of image_annotate. See reference manual of 'magick' for detail.
interactive_annotate( image, text, gravity = "northwest", font = "", style = "normal", decoration = NULL, color = NULL, strokecolor = NULL, boxcolor = NULL, range_max_size = 1000, range_max_weight = 850, range_max_kerning = 300, resolution = 0.1, return_param = FALSE, scale )
interactive_annotate( image, text, gravity = "northwest", font = "", style = "normal", decoration = NULL, color = NULL, strokecolor = NULL, boxcolor = NULL, range_max_size = 1000, range_max_weight = 850, range_max_kerning = 300, resolution = 0.1, return_param = FALSE, scale )
image |
a magick image object |
text |
character vector of length equal to 'image' or length 1 |
gravity |
string with gravity value from gravity_types. |
font |
string with font family such as "sans", "mono", "serif", "Times", "Helvetica", "Trebuchet", "Georgia", "Palatino" or "Comic Sans". |
style |
value of style_types for example "italic" |
decoration |
value of decoration_types for example "underline" |
color |
a valid color string such as "navyblue" or "#000080". Use "none" for transparency. |
strokecolor |
a color string adds a stroke (border around the text) |
boxcolor |
a color string for background color that annotation text is rendered on. |
range_max_size |
define maximum of size in slider. must be positive. |
range_max_weight |
define maximum of weight in slider. must be positive. |
range_max_kerning |
define maximum of kerning in slider. must be positive. |
resolution |
resolution of slider |
return_param |
If return_param is TRUE, returns a list of values of location, degrees, size, weight, and kerning. 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 a list of values of location, degrees, size, weight, and kerning
Shota Ochi
if (interactive()) { interactive_annotate(wizard, "hello") }
if (interactive()) { interactive_annotate(wizard, "hello") }
Using image_blur of 'magick' interactively. radius and sigma are parameters of image_blur. See reference manual of 'magick' for detail.
interactive_blur( image, range_max_radius = 5, range_max_sigma = 5, resolution = 0.1, return_param = FALSE, scale )
interactive_blur( image, range_max_radius = 5, range_max_sigma = 5, 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 and sigma. 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 and sigma
Shota Ochi
if (interactive()) { interactive_blur(wizard) }
if (interactive()) { interactive_blur(wizard) }
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 )
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) }
if (interactive()) { interactive_canny(wizard) }
Using image_charcoal of 'magick' interactively. radius and sigma are parameters of image_charcoal. See reference manual of 'magick' for detail.
interactive_charcoal( image, range_max_radius = 5, range_max_sigma = 5, resolution = 0.1, return_param = FALSE, scale )
interactive_charcoal( image, range_max_radius = 5, range_max_sigma = 5, 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 and sigma. 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 and sigma
Shota Ochi
if (interactive()) { interactive_charcoal(wizard) }
if (interactive()) { interactive_charcoal(wizard) }
Using image_composite of 'magick' interactively. offset is a parameter of image_composite. see reference manual of 'magick' for detail.
interactive_composite( image, composite_image, operator = "atop", compose_args = "", resolution = 1, return_param = FALSE, scale )
interactive_composite( image, composite_image, operator = "atop", compose_args = "", resolution = 1, return_param = FALSE, scale )
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. |
magick a image object or values of offset
Shota Ochi
if (interactive()) { interactive_composite(wizard, rose) }
if (interactive()) { interactive_composite(wizard, rose) }
Using image_crop of 'magick' interactively. geometry is a parameter of image_crop. See reference manual of 'magick' for detail.
interactive_crop(image, color = "white", return_param = FALSE, scale)
interactive_crop(image, color = "white", return_param = FALSE, scale)
image |
a magick image object |
color |
color of background. a valid color string such as "navyblue" or "#000080". "none" is not allowed. |
return_param |
If return_param is TRUE, returns a value of geometry. 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 a value of geometry.
Shota Ochi
if (interactive()) { interactive_crop(wizard) }
if (interactive()) { interactive_crop(wizard) }
Using image_despeckle of 'magick' interactively. times is a parameter of image_despeckle. See reference manual of 'magick' for detail.
interactive_despeckle( image, range_max = 50, resolution = 1, return_param = FALSE, scale )
interactive_despeckle( image, range_max = 50, resolution = 1, return_param = FALSE, scale )
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. |
a magick image object or value of times
Shota Ochi
if (interactive()) { interactive_despeckle(wizard) }
if (interactive()) { interactive_despeckle(wizard) }
Using image_emboss of 'magick' interactively. radius and sigma are parameters of image_emboss. See reference manual of 'magick' for detail.
interactive_emboss( image, range_max_radius = 5, range_max_sigma = 5, resolution = 0.1, return_param = FALSE, scale )
interactive_emboss( image, range_max_radius = 5, range_max_sigma = 5, 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 and sigma. 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 and sigma
Shota Ochi
if (interactive()) { interactive_emboss(wizard) }
if (interactive()) { interactive_emboss(wizard) }
Using image_fill of 'magick' interactively. point and fuzz are parameters of image_fill. See reference manual of 'magick' for detail.
interactive_fill( image, color, refcolor = NULL, resolution = 0.1, return_param = FALSE, scale )
interactive_fill( image, color, refcolor = NULL, resolution = 0.1, return_param = FALSE, scale )
image |
a magick image object |
color |
a valid color string such as "navyblue" or "#000080". Use "none" for transparency. |
refcolor |
if set, fuzz color distance will be measured against this color, not the color of the starting point. Any color (within fuzz color distance of the given refcolor), connected to starting point will be replaced with the color. If the pixel at the starting point does not itself match the given refcolor (according to fuzz) then no action will be taken. |
resolution |
resolution of slider of fuzz |
return_param |
If return_param is TRUE, returns a list values of point and fuzz. 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 a list of values of point and fuzz
Shota Ochi
if (interactive()) { interactive_fill(wizard, "black") }
if (interactive()) { interactive_fill(wizard, "black") }
Using image_implode of 'magick' interactively. factor is a parameter of image_implode. See reference manual of 'magick' for detail.
interactive_implode( image, range_max = 1, resolution = 0.1, return_param = FALSE, scale )
interactive_implode( image, range_max = 1, resolution = 0.1, return_param = FALSE, scale )
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 factor. 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 value of factor
Shota Ochi
if (interactive()) { interactive_implode(wizard) }
if (interactive()) { interactive_implode(wizard) }
Using image_modulate of 'magick' interactively. brightness and saturation and hue are parameters of image_modulate. See reference manual of 'magick' for detail.
interactive_modulate( image, range_max_brightness = 200, range_max_saturation = 200, range_max_hue = 200, resolution = 0.1, return_param = FALSE, scale )
interactive_modulate( image, range_max_brightness = 200, range_max_saturation = 200, range_max_hue = 200, resolution = 0.1, return_param = FALSE, scale )
image |
a magick image object |
range_max_brightness |
define maximum in slider of brightness. must be positive. |
range_max_saturation |
define maximum in slider of saturation. must be positive. |
range_max_hue |
define maximum in slider of hue. must be positive. |
resolution |
resolution of slider |
return_param |
If return_param is TRUE, returns values of brightness and saturation and hue. 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 brightness, saturation, and hue
Shota Ochi
if (interactive()) { interactive_modulate(wizard) }
if (interactive()) { interactive_modulate(wizard) }
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.
interactive_motion_blur( image, range_max_radius = 100, range_max_sigma = 100, range_max_angle = 360, resolution = 0.1, return_param = FALSE, scale )
interactive_motion_blur( image, range_max_radius = 100, range_max_sigma = 100, range_max_angle = 360, 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. |
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. |
a magick image object or values of radius, sigma, and angle
Shota Ochi
if (interactive()) { interactive_motion_blur(wizard) }
if (interactive()) { interactive_motion_blur(wizard) }
Using image_oilpaint of 'magick' interactively. radius is a parameter of image_oilpaint. See reference manual of 'magick' for detail.
interactive_oilpaint( image, range_max = 10, resolution = 0.1, return_param = FALSE, scale )
interactive_oilpaint( image, range_max = 10, resolution = 0.1, return_param = FALSE, scale )
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 radius. 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 value of radius
Shota Ochi
if (interactive()) { interactive_oilpaint(wizard) }
if (interactive()) { interactive_oilpaint(wizard) }
Using image_quantize of 'magick' interactively. max is a parameter of image_quantize. See reference manual of 'magick' for detail.
interactive_quantize( image, colorspace = "rgb", dither = NULL, treedepth = NULL, range_max = 256, resolution = 1, return_param = FALSE, scale )
interactive_quantize( image, colorspace = "rgb", dither = NULL, treedepth = NULL, range_max = 256, resolution = 1, return_param = FALSE, scale )
image |
a magick image object |
colorspace |
specify colorspace. for example, "rgb", "gray", or "cmyk". |
dither |
apply Floyd/Steinberg error diffusion to the image |
treedepth |
depth of the quantization color classification tree |
range_max |
define maximum in slider. must be positive. |
resolution |
resolution of slider |
return_param |
If return_param is TRUE, returns value of max. 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 value of max
Shota Ochi
if (interactive()) { interactive_quantize(wizard) }
if (interactive()) { interactive_quantize(wizard) }
Using image_reducenoise of 'magick' interactively. radius is a parameter of image_reducenoise. See reference manual of 'magick' for detail.
interactive_reducenoise( image, range_max = 30, resolution = 1, return_param = FALSE, scale )
interactive_reducenoise( image, range_max = 30, resolution = 1, return_param = FALSE, scale )
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 radius. 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 value of radius
Shota Ochi
if (interactive()) { interactive_reducenoise(wizard) }
if (interactive()) { interactive_reducenoise(wizard) }
Using image_shade of 'magick' interactively. azimuth and elevation are parameters of image_shade. See reference manual of 'magick' for detail.
interactive_shade( image, color = FALSE, range_max_azimuth, range_min_azimuth, range_max_elevation, range_min_elevation, resolution = 0.1, return_param = FALSE, scale )
interactive_shade( image, color = FALSE, range_max_azimuth, range_min_azimuth, range_max_elevation, range_min_elevation, resolution = 0.1, return_param = FALSE, scale )
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. |
a magick image object or values of azimuth and elevation
Shota Ochi
if (interactive()) { interactive_shade(wizard) }
if (interactive()) { interactive_shade(wizard) }
Using image_threshold of 'magick' interactively. threshold is a parameter of image_threshold. See reference manual of 'magick' for detail.
interactive_threshold( image, type = c("black", "white"), channel = NULL, resolution = 0.1, return_param = FALSE, scale )
interactive_threshold( image, type = c("black", "white"), channel = NULL, resolution = 0.1, return_param = FALSE, scale )
image |
a magick image object |
type |
type of thresholding, either one of lat, black or white |
channel |
a value specifying which channel(s) to set |
resolution |
resolution of slider |
return_param |
If return_param is TRUE, returns threshold value. 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 threshold value
Shota Ochi
if (interactive()) { interactive_threshold(wizard) }
if (interactive()) { interactive_threshold(wizard) }
magickGUI enables us to use the functions of the package 'magick' interactively.
Maintainer: Shota Ochi [email protected]
Useful links: